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
83d1b63e
Commit
83d1b63e
authored
Jun 11, 2019
by
Ruslan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement parcels index page
parent
2c45105e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
119 additions
and
107 deletions
+119
-107
workspace.xml
.idea/workspace.xml
+106
-86
PackagesController.php
app/Http/Controllers/PackagesController.php
+1
-3
index.blade.php
resources/views/pages/parcels/index.blade.php
+12
-18
No files found.
.idea/workspace.xml
View file @
83d1b63e
This diff is collapsed.
Click to expand it.
app/Http/Controllers/PackagesController.php
View file @
83d1b63e
...
@@ -227,9 +227,7 @@ class PackagesController extends Controller
...
@@ -227,9 +227,7 @@ class PackagesController extends Controller
public
function
index
()
public
function
index
()
{
{
$units
=
Package
::
where
(
'user_id'
,
'='
,
Auth
::
user
()
->
id
)
->
get
();
$units
=
Package
::
where
(
'user_id'
,
'='
,
Auth
::
user
()
->
id
);
return
view
(
'pages.parcels.index'
,
compact
(
'units'
));
return
view
(
'pages.parcels.index'
,
compact
(
'units'
));
}
}
}
}
resources/views/pages/parcels/index.blade.php
View file @
83d1b63e
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<div class="
row
">
<div class="
row
">
<div class="
col
-
xs
-
12
section
-
inset
-
1
">
<div class="
col
-
xs
-
12
section
-
inset
-
1
">
<div class="
table
-
responsive
">
<div class="
table
-
responsive
">
<table class="
table
table
-
hover
text
-
left
">
<table class="
table
table
-
bordered
text
-
left
table
-
primary
table
-
hover
">
<thead>
<thead>
<tr class="
bg
-
dark
">
<tr class="
bg
-
dark
">
<th>Tracking ID</th>
<th>Tracking ID</th>
...
@@ -27,34 +27,28 @@
...
@@ -27,34 +27,28 @@
<tbody>
<tbody>
@foreach(
$units
as
$unit
)
@foreach(
$units
as
$unit
)
<tr>
<tr>
<td>{{
$unit->tracking_number
}}</td>
<td>{{
$unit->track_number
}}</td>
<td><a href="
#">{{ $unit->name }}</a></td>
<td><a href="
#">{{ $unit->package_name }}</a></td>
<
td
><
p
class
="
font
-
secondary
h6
">{{
$unit->status
}}</p>
<
td
><
b
>
{{
$unit
->
status
}}
</
b
></
td
>
</td>
<
td
>
{{
$unit
->
items_weight
()
}}
</
td
>
<td>{{
$unit->weight
}}</td>
<
td
>
{{
$unit
->
total_items
()
}}
</
td
>
<td>
<
td
>
$
{{
$unit
->
items_cost
()
}}
</
td
>
<label>
{{--{{
$unit->items
->count() }}--}}
</label>
</form>
</td>
<td>${{
$unit->price
}}</td>
<
td
>
<
td
>
@
if
(
$unit
->
status
==
1
)
@
if
(
$unit
->
status
==
1
)
<
i class="
fa
fa
-
money
"></i
>
<
span
class
="
icon
icon
-
xs
fa
fa
-
money
"></span
>
@endif
@endif
<i class="
fa
fa
-
pencil
"></i>
<i class="
fa
fa
-
times
-
circle
"></i>
<span class="
icon
icon
-
xs
fa
fa
-
pencil
"></span>
<span class="
icon
icon
-
xs
fa
fa
-
times
-
circle
"></span>
</td>
</td>
</tr>
</tr>
@endforeach
@endforeach
</tr>
</tbody>
</tbody>
</table>
</table>
</div>
</div>
<!-- RD Mailform-->
<!-- RD Mailform-->
<a href="
/
packages
/
addr
" class="
btn
btn
-
primary
btn
-
sm
pull
-
sm
-
right
" >Add Order</a>
<a href="
/
packages
/
addr
" class="
btn
btn
-
primary
btn
-
xs
pull
-
sm
-
right
btn
-
shadow
" >Add Order</a>
</div>
</div>
</div>
</div>
...
...
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