Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
T
test-webshop
Project
Project
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
Artem
test-webshop
Commits
75db800a
Commit
75db800a
authored
May 14, 2020
by
Artem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add modal in cart for sending order button, small update in profile orders page design
parent
702d3ace
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
6 deletions
+38
-6
orders.css
public/css/profile/orders.css
+10
-0
cart.blade.php
resources/views/cart.blade.php
+27
-4
orders.blade.php
resources/views/profile/orders.blade.php
+1
-2
No files found.
public/css/profile/orders.css
View file @
75db800a
.order-card
{
border-radius
:
7px
;
overflow
:
hidden
;
}
.order-card
:hover
{
box-shadow
:
0
0
13px
0
rgba
(
0
,
0
,
0
,
.4
);
}
.order-card-header
{
border-bottom
:
0
;
}
...
...
@@ -10,3 +19,4 @@
width
:
200px
;
text-align
:
right
;
}
resources/views/cart.blade.php
View file @
75db800a
...
...
@@ -5,6 +5,26 @@
<div class="
container
">
@if(Session::has('cart'))
<div class="
modal
fade
" id="
staticBackdrop
" tabindex="
-
1
" role="
dialog
" aria-labelledby="
staticBackdropLabel
" aria-hidden="
true
">
<div class="
modal
-
dialog
" role="
document
" style="
margin
-
top
:
150
px
;
">
<div class="
modal
-
content
">
<div class="
modal
-
header
">
<h5 class="
modal
-
title
" id="
staticBackdropLabel
">Are you sure you want to place the order?</h5>
<button type="
button
" class="
close
" data-dismiss="
modal
" aria-label="
Close
">
<span aria-hidden="
true
">×</span>
</button>
</div>
<div class="
modal
-
body
d
-
flex
justify
-
content
-
between
">
<form action="
{{
route
(
'order.sendOrder'
)
}}
" method="
POST
">
@csrf
<button class="
btn
btn
-
success
">Send order</button>
</form>
<button type="
button
" class="
btn
btn
-
secondary
" data-dismiss="
modal
">Close</button>
</div>
</div>
</div>
</div>
<table id="
cart
" class="
table
table
-
hover
table
-
condensed
">
<thead>
<tr>
...
...
@@ -62,10 +82,13 @@
</td>
<td class="
hidden
-
xs
text
-
center
"><strong>Total € {{
$cart->total_price
}}</strong></td>
<td>
<form action="
{{
route
(
'order.sendOrder'
)
}}
" method="
POST
">
@csrf
<button class="
btn
btn
-
success
btn
-
block
">Send order</button>
</form>
{{-- <form action="
{{
route
(
'order.sendOrder'
)
}}
" method="
POST
">--}}
{{-- @csrf--}}
{{-- <button class="
btn
btn
-
success
btn
-
block
">Send order</button>--}}
{{-- </form>--}}
<button class="
btn
btn
-
success
btn
-
block
" data-toggle="
modal
" data-target="
#staticBackdrop">
Send
order
</
button
>
</
td
>
</
tr
>
</
tfoot
>
...
...
resources/views/profile/orders.blade.php
View file @
75db800a
...
...
@@ -9,7 +9,7 @@
<
p
class
="
h3
">You don't have any orders. <a href="
{{
route
(
'homepage'
)
}}
">Check our products</a></p>
@else
@foreach(
$orders
as
$order
)
<div class="
card
mb
-
3
">
<div class="
card
mb
-
3
order
-
card
">
<div class="
card
-
header
order
-
card
-
header
d
-
flex
"
data-toggle="
collapse
"
data-target="
#{{ 'order_' . $order->id }}"
...
...
@@ -33,7 +33,6 @@
@endforeach
</div>
</div>
@endforeach
@endif
@endsection
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