Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
onestartup-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Angel Martin
onestartup-shop
Commits
e2341cce
Commit
e2341cce
authored
May 29, 2018
by
Angel MAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
envio con referencias
parent
2b3ac039
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
1 deletions
+40
-1
2018_05_29_220810_add_references_to_shipping_table.php
...ns/2018_05_29_220810_add_references_to_shipping_table.php
+32
-0
ShippingAddres.php
src/models/ShippingAddres.php
+1
-0
orden.blade.php
src/views/clients/orden.blade.php
+1
-1
fields-shipping.blade.php
src/views/public/forms/fields-shipping.blade.php
+6
-0
No files found.
src/migrations/2018_05_29_220810_add_references_to_shipping_table.php
0 → 100644
View file @
e2341cce
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
AddReferencesToShippingTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'shipping_addres'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'referencias'
)
->
nullable
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'shipping_addres'
,
function
(
Blueprint
$table
)
{
$table
->
dropColumn
(
'referencias'
);
});
}
}
src/models/ShippingAddres.php
View file @
e2341cce
...
@@ -14,6 +14,7 @@ class ShippingAddres extends Model
...
@@ -14,6 +14,7 @@ class ShippingAddres extends Model
'colonia'
,
'colonia'
,
'ciudad'
,
'ciudad'
,
'estado'
,
'estado'
,
'referencias'
,
'client_id'
,
'client_id'
,
'shipping_price_id'
'shipping_price_id'
];
];
...
...
src/views/clients/orden.blade.php
View file @
e2341cce
...
@@ -179,7 +179,7 @@ setlocale(LC_MONETARY, 'en_US');
...
@@ -179,7 +179,7 @@ setlocale(LC_MONETARY, 'en_US');
<b>
{
{$shipping->ciudad}
}
,
{
{$shipping->estado}
}
</b><br>
<b>
{
{$shipping->ciudad}
}
,
{
{$shipping->estado}
}
</b><br>
C.P. <b>
{
{$shipping->cp}
}
</b><br>
C.P. <b>
{
{$shipping->cp}
}
</b><br>
Referencias:<br>
Referencias:<br>
<b>
Callejon en barda azul
</b><br>
<b>
{
{$shipping->referencias}
}
</b><br>
Estatus del envio: <a href="
javascript
::
void
()
" data-target="
#m-a-a" data-toggle="modal" href="#" ui-target="#animate" ui-toggle-class="zoom"><i class="fa fa-edit"></i></a><br>
Estatus del envio: <a href="
javascript
::
void
()
" data-target="
#m-a-a" data-toggle="modal" href="#" ui-target="#animate" ui-toggle-class="zoom"><i class="fa fa-edit"></i></a><br>
...
...
src/views/public/forms/fields-shipping.blade.php
View file @
e2341cce
...
@@ -29,6 +29,11 @@
...
@@ -29,6 +29,11 @@
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{!! Form::label('referencias', 'Referencias', ['class'=>'']) !!}
{!! Form::text('referencias', $addres->referencias, ['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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment