File tree Expand file tree Collapse file tree 3 files changed +23
-23
lines changed Expand file tree Collapse file tree 3 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 2727 <th >Price</th >
2828 <th >Register Date</th >
2929 <th >Paid Status</th >
30- <th >Action</th >
3130 </tr >
3231 </thead >
3332 <tbody class =" bg-light" >
3433 @forelse ($checkouts as $checkout )
3534 <tr class =" align-middle" >
3635 <td >
37- {{ $checkout -> Camp -> title } }
36+ <strong >
37+ {{ $checkout -> Camp -> title } }
38+ </strong >
3839 </td >
3940 <td >
4041 {{ $checkout -> User -> name } }
4142 </td >
4243 <td >
43- <strong ><span class =" text-danger " >$</ span > {{ $checkout -> Camp -> price } },00 </strong >
44+ <strong ><span class =" text-success " >Rp. {{ $checkout -> Camp -> price } }.000</ span > </strong >
4445 </td >
4546 <td >
4647 {{ $checkout -> created_at -> format (' d M Y' )} }
4748 </td >
4849 <td class =" text-center" >
49- @if ($checkout -> is_paid )
50- <div class =" badge bg-success" >Success</div >
50+ @if ($checkout -> payment_status == ' paid' )
51+ <div class =" badge bg-success" >{{ $checkout -> payment_status } } </div >
52+ @elseif ($checkout -> payment_status == ' waiting' )
53+ <div class =" badge bg-warning" >{{ $checkout -> payment_status } } </div >
5154 @else
52- <div class =" badge bg-warning" >Waiting</div >
53- @endif
54- </td >
55- <td >
56- @if (! $checkout -> is_paid )
57- <form action =" {{ route (' admin.checkout.update' , $checkout -> id )} }" method =" post" >
58- @csrf
59- <button class =" btn btn-primary btn-sm" >Set to Paid</button >
60- </form >
61- @else
62-
55+ <div class =" badge bg-danger" >{{ $checkout -> payment_status } } </div >
6356 @endif
6457 </td >
6558 </tr >
Original file line number Diff line number Diff line change 3636 <div class =" container-login100" >
3737 <div class =" wrap-login100" >
3838 <form class =" login100-form validate-form" >
39- <a href =" {{ route (' welcome">
39+ <a href =" {{ route (' welcome' ) } } " >
4040 <span class =" login100-form-title p-b-43" >
4141 Login <span style =" color : #255efc " >C</span >ourse<span style =" color : #255efc " >C</span >ast
4242 </span >
8787 <i class =" fa fa-facebook-f" aria-hidden =" true" ></i >
8888 </a >
8989
90- <a href="{{ route (' user.login.google" class="login100-form-social-item flex-c-m bg3 m-r-5">
90+ <a href =" {{ route (' user.login.google' ) } } " class =" login100-form-social-item flex-c-m bg3 m-r-5" >
9191 <i class =" fa fa-google" aria-hidden =" true" ></i >
9292 </a >
9393
Original file line number Diff line number Diff line change 3535 </p >
3636 </td >
3737 <td >
38- <strong >$ {{ $checkout -> Camp -> price } },00 </strong >
38+ <strong >Rp. {{ $checkout -> Camp -> price } }.000 </strong >
3939 </td >
4040 <td >
4141 @if ($checkout -> payment_status == " waiting" )
42- <strong class =" text-primary" >Waiting for Payment </strong >
42+ <strong class =" text-primary" >{{ $checkout -> payment_status } } </strong >
4343 @elseif ($checkout -> payment_status == " paid" )
44- <strong class =" text-success" >Success </strong >
44+ <strong class =" text-success" >{{ $checkout -> payment_status } } </strong >
4545 @endif
4646 </td >
4747 <td >
48- <a href =" {{ $checkout -> midtrans_url } }" target =" _blank" class =" btn btn-primary" >
49- Pay Now
48+ @if ($checkout -> payment_status == ' waiting' )
49+ <a href =" {{ $checkout -> midtrans_url } }" target =" _blank" class =" btn btn-primary btn-sm" >
50+ Pay Now
51+ </a >
52+ @endif
53+ </td >
54+ <td >
55+ <a href =" https://wa.me/628xxx?text= Halo, saya ingin bertanya tentang kelas {{ $checkout -> Camp -> title } }" target =" _blank" class =" btn btn-primary btn-sm" >
56+ Contact Support
5057 </a >
5158 </td >
5259 </tr >
You can’t perform that action at this time.
0 commit comments