Commit 8ffbb955 by Angel MAS

campo de facturacion

parent 3b9aced4
...@@ -15,6 +15,7 @@ class AddReferencesToShippingTable extends Migration ...@@ -15,6 +15,7 @@ class AddReferencesToShippingTable extends Migration
{ {
Schema::table('shipping_addres', function (Blueprint $table) { Schema::table('shipping_addres', function (Blueprint $table) {
$table->string('referencias')->nullable(); $table->string('referencias')->nullable();
$table->string('facturacion')->nullable();
}); });
} }
...@@ -27,6 +28,7 @@ class AddReferencesToShippingTable extends Migration ...@@ -27,6 +28,7 @@ class AddReferencesToShippingTable extends Migration
{ {
Schema::table('shipping_addres', function (Blueprint $table) { Schema::table('shipping_addres', function (Blueprint $table) {
$table->dropColumn('referencias'); $table->dropColumn('referencias');
$table->dropColumn('facturacion');
}); });
} }
} }
...@@ -16,6 +16,7 @@ class ShippingAddres extends Model ...@@ -16,6 +16,7 @@ class ShippingAddres extends Model
'estado', 'estado',
'referencias', 'referencias',
'client_id', 'client_id',
'facturacion',
'shipping_price_id' 'shipping_price_id'
]; ];
......
...@@ -39,6 +39,7 @@ Datos de envio: ...@@ -39,6 +39,7 @@ Datos de envio:
- Calle: *** {{$shipping->calle}} Nro. {{$shipping->numero}}, col. {{$shipping->colonia}} *** - Calle: *** {{$shipping->calle}} Nro. {{$shipping->numero}}, col. {{$shipping->colonia}} ***
- *** {{$shipping->ciudad}}, {{$shipping->estado}}, C.P. {{$shipping->cp}}*** - *** {{$shipping->ciudad}}, {{$shipping->estado}}, C.P. {{$shipping->cp}}***
- Referencias: *** {{$shipping->referencias}} *** - Referencias: *** {{$shipping->referencias}} ***
- Requiere factura: *** {{$shipping->facturacion}} ***
@endcomponent @endcomponent
Gracias por tu compra,<br> Gracias por tu compra,<br>
......
...@@ -34,6 +34,11 @@ ...@@ -34,6 +34,11 @@
</div> </div>
<div class="form-group"> <div class="form-group">
{!! Form::label('facturacion', '¿Necesitaras factura?', ['class'=>'']) !!}
{!! Form::select('facturacion',['No'=>'No', 'Si'=>'Si'], $addres->facturacion, ['class'=>'form-control','required'=>'required']) !!}
</div>
<div class="form-group">
{!! Form::label('shipping_price_id', 'Tipo de envio', ['class'=>'']) !!} {!! Form::label('shipping_price_id', 'Tipo de envio', ['class'=>'']) !!}
{!! Form::select('shipping_price_id', $shipping, $addres->shipping_price_id != null ? $addres->shipping_price_id : null,['class'=>'form-control','required'=>'required']) !!} {!! Form::select('shipping_price_id', $shipping, $addres->shipping_price_id != null ? $addres->shipping_price_id : null,['class'=>'form-control','required'=>'required']) !!}
</div> </div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment