Commit 8ffbb955 by Angel MAS

campo de facturacion

parent 3b9aced4
......@@ -15,6 +15,7 @@ class AddReferencesToShippingTable extends Migration
{
Schema::table('shipping_addres', function (Blueprint $table) {
$table->string('referencias')->nullable();
$table->string('facturacion')->nullable();
});
}
......@@ -27,6 +28,7 @@ class AddReferencesToShippingTable extends Migration
{
Schema::table('shipping_addres', function (Blueprint $table) {
$table->dropColumn('referencias');
$table->dropColumn('facturacion');
});
}
}
......@@ -16,6 +16,7 @@ class ShippingAddres extends Model
'estado',
'referencias',
'client_id',
'facturacion',
'shipping_price_id'
];
......
......@@ -39,6 +39,7 @@ Datos de envio:
- Calle: *** {{$shipping->calle}} Nro. {{$shipping->numero}}, col. {{$shipping->colonia}} ***
- *** {{$shipping->ciudad}}, {{$shipping->estado}}, C.P. {{$shipping->cp}}***
- Referencias: *** {{$shipping->referencias}} ***
- Requiere factura: *** {{$shipping->facturacion}} ***
@endcomponent
Gracias por tu compra,<br>
......
......@@ -34,6 +34,11 @@
</div>
<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::select('shipping_price_id', $shipping, $addres->shipping_price_id != null ? $addres->shipping_price_id : null,['class'=>'form-control','required'=>'required']) !!}
</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