Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fazo
Project
Project
Details
Activity
Releases
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
nuriddin
fazo
Commits
196c01fd
Commit
196c01fd
authored
Oct 20, 2019
by
Khumoyunmirzo Sodiqov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs
parent
d5c70c8f
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
215 additions
and
104 deletions
+215
-104
OrderController.php
app/Http/Controllers/OrderController.php
+14
-6
ProfileController.php
app/Http/Controllers/ProfileController.php
+1
-1
Address.php
app/Models/Address.php
+19
-6
Orders.php
app/Models/Orders.php
+1
-0
user_new.blade.php
resources/views/layouts/user_new.blade.php
+7
-8
allpackages.blade.php
resources/views/pages/parcels/allpackages.blade.php
+1
-1
order_create.blade.php
resources/views/pages/parcels/order_create.blade.php
+113
-51
address_add.blade.php
resources/views/pages/profile/address_add.blade.php
+56
-29
addresses.blade.php
resources/views/pages/profile/addresses.blade.php
+1
-1
web.php
routes/web.php
+2
-1
No files found.
app/Http/Controllers/OrderController.php
View file @
196c01fd
...
@@ -34,6 +34,7 @@ class OrderController extends Controller
...
@@ -34,6 +34,7 @@ class OrderController extends Controller
public
function
index
(
Request
$request
)
public
function
index
(
Request
$request
)
{
{
$id
=
Auth
::
user
()
->
id
;
$status_id
=
(
$request
->
get
(
'status_id'
))
?
$request
->
get
(
'status_id'
)
:
0
;
$status_id
=
(
$request
->
get
(
'status_id'
))
?
$request
->
get
(
'status_id'
)
:
0
;
...
@@ -161,15 +162,17 @@ class OrderController extends Controller
...
@@ -161,15 +162,17 @@ class OrderController extends Controller
$senderAddresses
=
Address
::
select
([
$senderAddresses
=
Address
::
select
([
'id'
,
'id'
,
'user_id'
,
'country'
,
'country'
,
'city'
,
'street'
,
'house'
,
'apartment'
,
'zip'
,
'passport'
,
'type'
'city'
,
'street'
,
'house'
,
'apartment'
,
'zip'
,
'passport'
,
'type'
])
->
where
(
'type'
,
'='
,
0
)
->
get
();
])
->
where
(
'user_id'
,
'='
,
$id
)
->
get
();
// $senderAddresses->where('user_id', '=', $id)->get();
$recAddresses
=
Address
::
select
([
$recAddresses
=
Address
::
select
([
'id'
,
'id'
,
'country'
,
'country'
,
'city'
,
'street'
,
'house'
,
'apartment'
,
'zip'
,
'passport'
,
'type'
'city'
,
'street'
,
'house'
,
'apartment'
,
'zip'
,
'passport'
,
'type'
])
->
where
(
'
type'
,
'='
,
1
)
->
get
();
])
->
where
(
'
user_id'
,
'='
,
$id
)
->
get
();
// $recAddresses->where('user_id', '=', $id)->get();
$services
=
Service
::
select
([
$services
=
Service
::
select
([
'id'
,
'name_ru'
,
'price'
,
'status'
'id'
,
'name_ru'
,
'price'
,
'status'
])
->
where
(
'status'
,
'='
,
1
)
->
get
();
])
->
where
(
'status'
,
'='
,
1
)
->
get
();
...
@@ -178,8 +181,10 @@ class OrderController extends Controller
...
@@ -178,8 +181,10 @@ class OrderController extends Controller
return
view
(
'pages.parcels.order_create'
,
[
'client'
=>
$client
,
'senderAddresses'
=>
$senderAddresses
,
'recAddresses'
=>
$recAddresses
,
'services'
=>
$services
]);
return
view
(
'pages.parcels.order_create'
,
[
'client'
=>
$client
,
'senderAddresses'
=>
$senderAddresses
,
'recAddresses'
=>
$recAddresses
,
'services'
=>
$services
]);
}
}
public
function
s
tore
(
Request
$request
)
public
function
orderS
tore
(
Request
$request
)
{
{
// dd($request);
$user
=
Auth
::
user
();
$user
=
Auth
::
user
();
// $data = $request->json()->get('data');
// $data = $request->json()->get('data');
...
@@ -207,6 +212,7 @@ class OrderController extends Controller
...
@@ -207,6 +212,7 @@ class OrderController extends Controller
}
}
}
}
$order
=
Orders
::
create
([
$order
=
Orders
::
create
([
'client_id'
=>
$request
->
get
(
'client_id'
),
'client_id'
=>
$request
->
get
(
'client_id'
),
'name'
=>
$request
->
get
(
'name'
),
'name'
=>
$request
->
get
(
'name'
),
...
@@ -219,11 +225,13 @@ class OrderController extends Controller
...
@@ -219,11 +225,13 @@ class OrderController extends Controller
'track_number'
=>
$this
->
generateUniqNumber
(
12
),
'track_number'
=>
$this
->
generateUniqNumber
(
12
),
'is_site'
=>
0
,
'is_site'
=>
0
,
'is_payment_uzb'
=>
0
,
'is_payment_uzb'
=>
0
,
'from_address'
=>
$request
->
get
(
'from_address'
),
'to_address_id'
=>
$request
->
get
(
'to_address_id'
),
'to_address_id'
=>
$request
->
get
(
'to_address_id'
),
'payment_is_to_office'
=>
0
,
'payment_is_to_office'
=>
0
,
'delivery_info'
=>
$request
->
get
(
'delivery_info'
),
'delivery_info'
=>
$request
->
get
(
'delivery_info'
),
'payment_info'
=>
$request
->
get
(
'payment_info'
),
'comment'
=>
$request
->
get
(
'comment'
),
'comment'
=>
$request
->
get
(
'comment'
),
'client_type'
=>
'
Mobile
'
,
'client_type'
=>
'
WEB
'
,
'status_id'
=>
19
,
'status_id'
=>
19
,
]);
]);
...
@@ -249,7 +257,7 @@ class OrderController extends Controller
...
@@ -249,7 +257,7 @@ class OrderController extends Controller
}
}
}
}
return
redirect
(
route
(
'
clients
'
));
return
redirect
(
route
(
'
package
'
));
}
}
}
}
app/Http/Controllers/ProfileController.php
View file @
196c01fd
...
@@ -88,7 +88,7 @@ class ProfileController extends Controller
...
@@ -88,7 +88,7 @@ class ProfileController extends Controller
$address
=
Address
::
find
((
int
)
$id
);
$address
=
Address
::
find
((
int
)
$id
);
if
(
$address
->
exists
)
{
if
(
$address
->
exists
)
{
$image
=
Images
::
find
(
$address
->
scan_id
);
$image
=
Images
::
find
(
$address
->
scan_id
);
if
(
$image
->
exists
)
if
(
$image
)
$image
->
delete
();
$image
->
delete
();
$address
->
delete
();
$address
->
delete
();
}
}
...
...
app/Models/Address.php
View file @
196c01fd
...
@@ -10,14 +10,21 @@ namespace App\Models;
...
@@ -10,14 +10,21 @@ namespace App\Models;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Support\Facades\DB
;
class
Address
extends
Model
class
Address
extends
Model
{
{
protected
$table
=
'address_info'
;
protected
$table
=
'address_info'
;
public
$timestamps
=
false
;
public
$timestamps
=
false
;
protected
$fillable
=
[
'firstname'
,
'secondname'
,
'fathername'
,
'phone'
,
'country'
,
'oblast'
,
'city'
,
'street'
,
'house'
,
protected
$fillable
=
[
'apartment'
,
'zip'
,
'is_default'
];
'user_id'
,
'scan_id'
,
'firstname'
,
'secondname'
,
'fathername'
,
'phone'
,
'country'
,
'city'
,
'street'
,
'house'
,
'apartment'
,
'zip'
,
'is_default'
,
'created'
,
'zip'
,
'passport'
,
'passport_by'
,
'passport_issue'
,
'type'
,
'r_limit'
];
protected
$casts
=
[
'created'
=>
'datetime'
,
];
static
public
$country
=
[
static
public
$country
=
[
'uzb'
=>
'Узбекистан'
'uzb'
=>
'Узбекистан'
];
];
...
@@ -43,18 +50,24 @@ class Address extends Model
...
@@ -43,18 +50,24 @@ class Address extends Model
return
$this
->
hasOne
(
'App\Models\Images'
,
'id'
,
'scan_id'
);
return
$this
->
hasOne
(
'App\Models\Images'
,
'id'
,
'scan_id'
);
}
}
public
function
user
()
{
public
function
user
()
{
return
$this
->
belongsTo
(
'App\User'
,
'user_id'
,
'id'
);
return
$this
->
belongsTo
(
'App\User'
,
'user_id'
,
'id'
);
}
}
public
function
getFormatedPassport
()
{
return
$this
->
passport
.
'| '
.
$this
->
passport_by
.
', '
.
$this
->
passport_issue
;
}
public
function
getFormated
()
public
function
getFormated
()
{
{
return
$this
->
street
.
', '
.
$this
->
house
.
', '
.
$this
->
apartment
.
', '
.
$this
->
city
.
', '
.
self
::
$oblast
[
$this
->
oblast
]
.
', '
.
self
::
$country
[
$this
->
country
]
;
return
$this
->
street
.
', '
.
$this
->
house
.
', '
.
$this
->
apartment
.
', '
.
DB
::
raw
(
'select title_ru from city id='
.
$this
->
city
)
.
', '
.
DB
::
raw
(
'select title_ru from country id='
.
$this
->
country
)
;
}
}
public
function
getFIO
()
public
function
getFIO
()
{
{
return
$this
->
firstname
.
' '
.
$this
->
secondname
.
' '
.
$this
->
fathername
;
return
$this
->
firstname
.
' '
.
$this
->
secondname
.
' '
.
$this
->
fathername
;
}
}
}
}
\ No newline at end of file
app/Models/Orders.php
View file @
196c01fd
...
@@ -43,6 +43,7 @@ class Orders extends Authenticatable
...
@@ -43,6 +43,7 @@ class Orders extends Authenticatable
'client_type'
,
'client_type'
,
'delivery_info'
,
'delivery_info'
,
'label_url'
,
'label_url'
,
'payment_info'
,
'status_id'
'status_id'
];
];
...
...
resources/views/layouts/user_new.blade.php
View file @
196c01fd
...
@@ -9,14 +9,13 @@
...
@@ -9,14 +9,13 @@
<link
rel=
"stylesheet"
href=
"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
<link
rel=
"stylesheet"
href=
"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity=
"sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin=
"anonymous"
>
integrity=
"sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin=
"anonymous"
>
<link
rel=
"stylesheet"
href=
"{{ asset('css/font-awesome.min.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('css/font-awesome.min.css') }}"
>
{{--
<script
--
}}
<!-- jQuery -->
{{
--
src=
"https://code.jquery.com/jquery-3.4.1.min.js"
--
}}
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"
type=
"text/javascript"
></script>
{{
--
integrity=
"sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
--
}}
<!-- jQuery easing plugin -->
{{
--
crossorigin=
"anonymous"
></script>
--}}
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"
type=
"text/javascript"
></script>
{{--
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.compatibility.js"
></script>
--}}
{{--
<script
src=
"https://code.jquery.com/jquery-3.3.1.slim.min.js"
--
}}
<script
src=
"https://code.jquery.com/jquery-3.3.1.slim.min.js"
{{
--
integrity=
"sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
--
}}
integrity=
"sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
{{
--
crossorigin=
"anonymous"
></script>
--}}
crossorigin=
"anonymous"
></script>
<style>
<style>
body
{
body
{
background-color
:
#fbfbfb
!important
;
background-color
:
#fbfbfb
!important
;
...
...
resources/views/pages/parcels/allpackages.blade.php
View file @
196c01fd
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
</td>
</td>
<td class="
text
-
center
">${{
$package->price
}}</td>
<td class="
text
-
center
">${{
$package->price
}}</td>
<td class="
text
-
center
">{{
$package->weight
}} кг</td>
<td class="
text
-
center
">{{
$package->weight
}} кг</td>
<td class="
text
-
center
">{{
$package->summa
}}</td>
<td class="
text
-
center
">
$
{{
$package->summa
}}</td>
</tr>
</tr>
@endforeach
@endforeach
</tbody>
</tbody>
...
...
resources/views/pages/parcels/order_create.blade.php
View file @
196c01fd
This diff is collapsed.
Click to expand it.
resources/views/pages/profile/address_add.blade.php
View file @
196c01fd
...
@@ -12,27 +12,48 @@
...
@@ -12,27 +12,48 @@
<form method="
post
" action="
{{
route
(
'address.store'
)
}}
" class="
needs
-
validation
border
border
-
1
bg
-
white
p
-
5
">
<form method="
post
" action="
{{
route
(
'address.store'
)
}}
" class="
needs
-
validation
border
border
-
1
bg
-
white
p
-
5
">
@csrf
@csrf
<div class="
row
">
<div class="
row
">
<div class="
col
-
xs
-
12
col
-
sm
-
6
">
<div class="
col
-
xs
-
12
col
-
sm
-
4
">
<div class="
form
-
group
">
<div class="
form
-
group
">
<label class="
form
-
label
" for="
forms
-
check
-
name1
">Имя</label>
<label class="
form
-
label
" for="
forms
-
check
-
name1
">Имя</label>
<input class="
form
-
control
" id="
forms
-
check
-
name1
" type="
text
" name="
name1
"
<input class="
form
-
control
" id="
forms
-
check
-
name1
" type="
text
" name="
firstname
"
data-constraints="
@
Required
">
data-constraints="
@
Required
">
</div>
</div>
</div>
</div>
<div class="
col
-
xs
-
12
col
-
sm
-
6
">
<div class="
col
-
xs
-
12
col
-
sm
-
4
">
<div class="
form
-
group
">
<div class="
form
-
group
">
<label class="
form
-
label
" for="
forms
-
check
-
last
-
name1
">Фамилия</label>
<label class="
form
-
label
" for="
forms
-
check
-
last
-
name1
">Фамилия</label>
<input class="
form
-
control
" id="
forms
-
check
-
last
-
name1
" type="
text
" name="
last
-
name1
"
<input class="
form
-
control
" id="
forms
-
check
-
last
-
name1
" type="
text
" name="
secondname
"
data-constraints="
@
Required
">
</div>
</div>
<div class="
col
-
xs
-
12
col
-
sm
-
4
">
<div class="
form
-
group
">
<label class="
form
-
label
" for="
forms
-
check
-
last
-
name1
">Отчество</label>
<input class="
form
-
control
" id="
forms
-
check
-
last
-
name1
" type="
text
" name="
fathername
"
data-constraints="
@
Required
">
data-constraints="
@
Required
">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="
row
">
<div class="
row
">
<div class="
col
-
md
-
12
">
<div class="
col
-
md
-
4
">
<div class="
form
-
group
">
<label class="
form
-
label
" for="
forms
-
check
-
company1
">Паспорт серия и номер</label>
<input class="
form
-
control
" id="
forms
-
check
-
company1
" type="
text
" name="
passport
"
data-constraints="
@
Required
">
</div>
</div>
<div class="
col
-
md
-
4
">
<div class="
form
-
group
">
<label class="
form
-
label
" for="
forms
-
check
-
company1
">Когда выдан</label>
<input class="
form
-
control
" id="
forms
-
check
-
company1
" type="
date
" name="
passport_issue
"
data-constraints="
@
Required
">
</div>
</div>
<div class="
col
-
md
-
4
">
<div class="
form
-
group
">
<div class="
form
-
group
">
<label class="
form
-
label
" for="
forms
-
check
-
company1
">
Паспорт
</label>
<label class="
form
-
label
" for="
forms
-
check
-
company1
">
Кем выдан
</label>
<input class="
form
-
control
" id="
forms
-
check
-
company1
" type="
text
" name="
company1
"
<input class="
form
-
control
" id="
forms
-
check
-
company1
" type="
text
" name="
passport_by
"
data-constraints="
@
Required
">
data-constraints="
@
Required
">
</div>
</div>
</div>
</div>
...
@@ -45,8 +66,8 @@
...
@@ -45,8 +66,8 @@
<label class="
form
-
label
" for="
involve
-
form
-
country1
">Страна</label>
<label class="
form
-
label
" for="
involve
-
form
-
country1
">Страна</label>
<select class="
form
-
control
" id="
involve
-
form
-
country1
" id="
country
" name="
country
"
<select class="
form
-
control
" id="
involve
-
form
-
country1
" id="
country
" name="
country
"
data-placeholder="
Select
Your
Country
">
data-placeholder="
Select
Your
Country
">
@foreach(\App\Models\
Address::
$country
as
$key
=>
$value
)
@foreach(\App\Models\
Country::all() as
$value
)
<option value="
{{
$
key
}}
">{{
$value
}}</option>
<option value="
{{
$
value
->
id
}}
">{{
$value->title_ru
}}</option>
@endforeach
@endforeach
</select>
</select>
</div>
</div>
...
@@ -57,23 +78,16 @@
...
@@ -57,23 +78,16 @@
<!-- RD SelectMenu-->
<!-- RD SelectMenu-->
<div class="
form
-
group
form
-
wrap
-
validation
">
<div class="
form
-
group
form
-
wrap
-
validation
">
<label class="
form
-
label
" for="
involve
-
form
-
country1
">Область</label>
<label class="
form
-
label
" for="
involve
-
form
-
country1
">Область</label>
<select class="
form
-
control
" id="
involve
-
form
-
country1
" name="
oblast
"
<select class="
form
-
control
" id="
involve
-
form
-
country1
" name="
city
"
data-placeholder="
Select
Your
Area
">
data-placeholder="
Select
Your
Area
">
@foreach(\App\Models\
Address::
$oblast
as
$key
=>
$value
)
@foreach(\App\Models\
City::all() as
$value
)
<option value="
{{
$
key
}}
">{{
$value
}}</option>
<option value="
{{
$
value
->
id
}}
">{{
$value->title_ru
}}</option>
@endforeach
@endforeach
</select>
</select>
</div>
</div>
</div>
</div>
<div class="
row
">
<div class="
row
">
<div class="
col
-
md
-
6
">
<div class="
form
-
group
">
<label class="
form
-
label
" for="
forms
-
check
-
city
">Город</label>
<input type="
text
" class="
form
-
control
" id="
forms
-
check
-
city
" name="
city
" placeholder="" value="">
</div>
</div>
<div class="
col
-
md
-
6
">
<div class="
col
-
md
-
6
">
<div class="
form
-
group
">
<div class="
form
-
group
">
<label class="
form
-
label
" for="
forms
-
check
-
street
">Улица</label>
<label class="
form
-
label
" for="
forms
-
check
-
street
">Улица</label>
...
@@ -81,25 +95,26 @@
...
@@ -81,25 +95,26 @@
value="">
value="">
</div>
</div>
</div>
</div>
</div>
<div class="
col
-
md
-
6
">
<div class="
row
">
<div class="
col
-
md
-
4
">
<div class="
form
-
group
">
<div class="
form
-
group
">
<label class="
form
-
label
" for="
forms
-
check
-
house
">Дом</label>
<label class="
form
-
label
" for="
forms
-
check
-
house
">Дом</label>
<input type="
text
" class="
form
-
control
" id="
forms
-
check
-
house
" name="
house
" placeholder="" value="">
<input type="
text
" class="
form
-
control
" id="
forms
-
check
-
house
" name="
house
" placeholder=""
value="">
</div>
</div>
</div>
</div>
</div>
<div class="
col
-
md
-
4
">
<div class="
row
">
<div class="
col
-
md
-
6
">
<div class="
form
-
group
">
<div class="
form
-
group
">
<label class="
form
-
label
" for="
forms
-
check
-
appartment
">Квартира</label>
<label class="
form
-
label
" for="
forms
-
check
-
appartment
">Квартира</label>
<input type="
text
" class="
form
-
control
" id="
forms
-
check
-
appartment
" name="
apartment
" placeholder=""
<input type="
text
" class="
form
-
control
" id="
forms
-
check
-
appartment
" name="
apartment
"
placeholder=""
value="">
value="">
</div>
</div>
</div>
</div>
<div class="
col
-
md
-
4
">
<div class="
col
-
md
-
6
">
<div class="
form
-
group
">
<div class="
form
-
group
">
<label class="
form
-
label
" for="
forms
-
check
-
postcode1
">ZIP код</label>
<label class="
form
-
label
" for="
forms
-
check
-
postcode1
">ZIP код</label>
<input class="
form
-
control
" id="
forms
-
check
-
postcode1
" type="
text
" name="
zip
"
<input class="
form
-
control
" id="
forms
-
check
-
postcode1
" type="
text
" name="
zip
"
...
@@ -109,13 +124,25 @@
...
@@ -109,13 +124,25 @@
</div>
</div>
<div class="
row
">
<div class="
row
">
<div class="
col
-
md
-
12
">
<div class="
col
-
md
-
6
">
<div class="
form
-
wrap
">
<div class="
form
-
wrap
">
<label class="
form
-
label
" for="
forms
-
check
-
phone
">Номер телефона.</label>
<label class="
form
-
label
" for="
forms
-
check
-
phone
">Номер телефона.</label>
<input class="
form
-
control
" id="
forms
-
check
-
phone
" type="
text
" name="
p
ostcod
e
"
<input class="
form
-
control
" id="
forms
-
check
-
phone
" type="
text
" name="
p
hon
e
"
data-constraints="
@
Required
">
data-constraints="
@
Required
">
</div>
</div>
</div>
</div>
<div class="
col
-
md
-
6
select
">
<div class="
form
-
group
form
-
wrap
-
validation
">
<label class="
form
-
label
" for="
involve
-
form
-
country1
">Выберите тип адреса</label>
<select class="
form
-
control
" id="
involve
-
form
-
country1
" name="
type
"
data-placeholder="
Выберите
тип
адреса
">
<option value="
sender
">Отправитель</option>
<option value="
recipient
">Получатель</option>
</select>
</div>
</div>
</div>
</div>
<button class="
btn
btn
-
primary
btn
-
sm
mt
-
4
shadow
" type="
submit
">Добавить Адрес</button>
<button class="
btn
btn
-
primary
btn
-
sm
mt
-
4
shadow
" type="
submit
">Добавить Адрес</button>
...
...
resources/views/pages/profile/addresses.blade.php
View file @
196c01fd
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<tr>
<tr>
<td>{{
$i
++ }}</td>
<td>{{
$i
++ }}</td>
<td>{{
$unit->firstname
}} {{
$unit->lastname
}}</td>
<td>{{
$unit->firstname
}} {{
$unit->lastname
}}</td>
<td>{{
$unit->
passport
}}
<td>{{
$unit->
getFormatedPassport
()
}}
</td>
</td>
<td>{{
$unit->getFormated
() }}</td>
<td>{{
$unit->getFormated
() }}</td>
<td>
<td>
...
...
routes/web.php
View file @
196c01fd
...
@@ -63,11 +63,12 @@ Route::post('/feedback/add', 'FeedbackController@addGuest');
...
@@ -63,11 +63,12 @@ Route::post('/feedback/add', 'FeedbackController@addGuest');
//Route::get('/packages/addr', 'PackagesController@addr');
//Route::get('/packages/addr', 'PackagesController@addr');
Route
::
get
(
'/packages'
,
'OrderController@index'
)
->
name
(
'package'
);
Route
::
get
(
'/packages'
,
'OrderController@index'
)
->
name
(
'package'
);
Route
::
get
(
'/packages/create/{id}'
,
'OrderController@create'
)
->
name
(
'package.create'
);
Route
::
get
(
'/packages/create/{id}'
,
'OrderController@create'
)
->
name
(
'package.create'
);
Route
::
post
(
'/packages/order-store'
,
'OrderController@orderStore'
)
->
name
(
'package.store'
);
Route
::
get
(
'/declaration/{package_id}'
,
'Postman\DeclarationController@generatePDF'
)
->
where
([
'package_id'
=>
'[0-9]+'
]);
Route
::
get
(
'/declaration/{package_id}'
,
'Postman\DeclarationController@generatePDF'
)
->
where
([
'package_id'
=>
'[0-9]+'
]);
Route
::
get
(
'/profile/address'
,
'ProfileController@address'
)
->
name
(
'address'
);
Route
::
get
(
'/profile/address'
,
'ProfileController@address'
)
->
name
(
'address'
);
Route
::
get
(
'/profile/addaddress'
,
'ProfileController@addaddress'
)
->
name
(
'address.add'
);
Route
::
get
(
'/profile/addaddress'
,
'ProfileController@addaddress'
)
->
name
(
'address.add'
);
Route
::
post
(
'/profile/storeaddress'
,
'ProfileController@storeaddress'
)
->
name
(
'address.store'
);
Route
::
post
(
'/profile/storeaddress'
,
'ProfileController@storeaddress'
)
->
name
(
'address.store'
);
Route
::
delete
(
'/profile/{id}'
,
'ProfileController@
deleteaddress
'
)
->
name
(
'address.destroy'
);
Route
::
delete
(
'/profile/{id}'
,
'ProfileController@
address_delete
'
)
->
name
(
'address.destroy'
);
Route
::
get
(
'/profile'
,
'ProfileController@profile'
);
Route
::
get
(
'/profile'
,
'ProfileController@profile'
);
Route
::
post
(
'/profile/save'
,
'ProfileController@save'
)
->
name
(
'profile.save'
);
Route
::
post
(
'/profile/save'
,
'ProfileController@save'
)
->
name
(
'profile.save'
);
//
//
...
...
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