|
199 | 199 | -
|
200 | 200 | </th>
|
201 | 201 | </tr>
|
202 |
| - @foreach(auth('customer')->user()->invoices as $inv) |
| 202 | + @foreach(auth('customer')->user()->invoices()->orderByDesc('id')->get() as $inv) |
203 | 203 | <tr>
|
204 | 204 | <td>
|
205 | 205 | {{$inv->hash}}
|
|
226 | 226 | class="btn btn-outline-primary btn-sm ">
|
227 | 227 | <i class="ri-eye-line"></i>
|
228 | 228 | </a>
|
229 |
| - @if($inv->status != 'COMPLETED' && $inv->created_at->timestamp > (time() - 3600) ) |
230 |
| - <a href="#" class="btn btn-outline-primary btn-sm ms-2"> |
| 229 | + @if( in_array($inv->status, ['PENDING', 'CANCELED', 'FAILED'] ) && $inv->created_at->timestamp > (time() - 3600) ) |
| 230 | + <a href="{{route('client.pay',$inv->hash)}}" class="btn btn-outline-primary btn-sm ms-2"> |
231 | 231 | <i class="ri-secure-payment-line"></i>
|
232 | 232 | {{__("Pay now")}}
|
233 | 233 | </a>
|
@@ -376,7 +376,8 @@ class="btn btn-outline-primary btn-sm ">
|
376 | 376 | {{__($ticket->status)}}
|
377 | 377 | </td>
|
378 | 378 | <td class="text-center">
|
379 |
| - <a href="{{ route('client.ticket.show',$ticket->id) }}" class="btn btn-outline-primary btn-sm"> |
| 379 | + <a href="{{ route('client.ticket.show',$ticket->id) }}" |
| 380 | + class="btn btn-outline-primary btn-sm"> |
380 | 381 | <i class="ri-eye-line"></i>
|
381 | 382 | {{__("View")}}
|
382 | 383 | </a>
|
@@ -415,14 +416,16 @@ class="btn btn-outline-primary btn-sm ">
|
415 | 416 | <label for="title">
|
416 | 417 | {{__("Title")}}
|
417 | 418 | </label>
|
418 |
| - <input type="text" id="title" name="title" value="{{old('title')}}" placeholder="{{__("Title")}}" |
| 419 | + <input type="text" id="title" name="title" value="{{old('title')}}" |
| 420 | + placeholder="{{__("Title")}}" |
419 | 421 | class="form-control">
|
420 | 422 | </div>
|
421 | 423 | <div class="form-group mt-3">
|
422 | 424 | <label for="body">
|
423 | 425 | {{__("Description Text")}}
|
424 | 426 | </label>
|
425 |
| - <textarea rows="7" name="body" class="form-control" placeholder="{{__("Your message ...")}}">{{old('body')}}</textarea> |
| 427 | + <textarea rows="7" name="body" class="form-control" |
| 428 | + placeholder="{{__("Your message ...")}}">{{old('body')}}</textarea> |
426 | 429 | </div>
|
427 | 430 | <div class="mt-3">
|
428 | 431 | <button class="btn btn-outline-primary w-100">
|
@@ -465,9 +468,11 @@ class="form-control">
|
465 | 468 | <p class="text-muted">
|
466 | 469 | {{$fav->excerpt}}
|
467 | 470 | </p>
|
468 |
| - <a class="fav-btn float-end mx-2" data-slug="{{$fav->slug}}" data-is-fav="{{$fav->isFav()}}" |
| 471 | + <a class="fav-btn float-end mx-2" data-slug="{{$fav->slug}}" |
| 472 | + data-is-fav="{{$fav->isFav()}}" |
469 | 473 | data-bs-custom-class="custom-tooltip"
|
470 |
| - data-bs-toggle="tooltip" data-bs-placement="top" title="{{__("Add to / Remove from favorites")}}"> |
| 474 | + data-bs-toggle="tooltip" data-bs-placement="top" |
| 475 | + title="{{__("Add to / Remove from favorites")}}"> |
471 | 476 | <i class="ri-heart-line"></i>
|
472 | 477 | <i class="ri-heart-fill"></i>
|
473 | 478 | </a>
|
|
0 commit comments