Skip to content

Commit 925437a

Browse files
committed
fixed avisa theme part
fixed home links
1 parent 63b96c1 commit 925437a

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

resources/views/home.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
{{__("Need process orders")}}
7272
</div>
7373
<div class="card-body">
74-
<a href="#">
74+
<a href='{{route('admin.invoice.index')}}?filter%5Bstatus%5D=%5B"PAID"%5D'>
7575
<i class="ri-shopping-bag-4-line"></i>
7676
<h2>
7777
{{number_format(\App\Models\Invoice::where('status','PAID')->count())}}
@@ -86,7 +86,7 @@
8686
{{__("Pending tickets")}}
8787
</div>
8888
<div class="card-body">
89-
<a href="{{route('admin.ticket.index')}}">
89+
<a href='{{route('admin.ticket.index')}}?filter%5Bstatus%5D=%5B"PENDING"%5D'>
9090
<i class="ri-customer-service-2-line"></i>
9191
<h2>
9292
{{number_format(\App\Models\Ticket::where('status','PENDING')->count())}}

resources/views/segments/customer/AvisaCustomer/AvisaCustomer.blade.php

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
-
200200
</th>
201201
</tr>
202-
@foreach(auth('customer')->user()->invoices as $inv)
202+
@foreach(auth('customer')->user()->invoices()->orderByDesc('id')->get() as $inv)
203203
<tr>
204204
<td>
205205
{{$inv->hash}}
@@ -226,8 +226,8 @@
226226
class="btn btn-outline-primary btn-sm ">
227227
<i class="ri-eye-line"></i>
228228
</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">
231231
<i class="ri-secure-payment-line"></i>
232232
{{__("Pay now")}}
233233
</a>
@@ -376,7 +376,8 @@ class="btn btn-outline-primary btn-sm ">
376376
{{__($ticket->status)}}
377377
</td>
378378
<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">
380381
<i class="ri-eye-line"></i>
381382
{{__("View")}}
382383
</a>
@@ -415,14 +416,16 @@ class="btn btn-outline-primary btn-sm ">
415416
<label for="title">
416417
{{__("Title")}}
417418
</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")}}"
419421
class="form-control">
420422
</div>
421423
<div class="form-group mt-3">
422424
<label for="body">
423425
{{__("Description Text")}}
424426
</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>
426429
</div>
427430
<div class="mt-3">
428431
<button class="btn btn-outline-primary w-100">
@@ -465,9 +468,11 @@ class="form-control">
465468
<p class="text-muted">
466469
{{$fav->excerpt}}
467470
</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()}}"
469473
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")}}">
471476
<i class="ri-heart-line"></i>
472477
<i class="ri-heart-fill"></i>
473478
</a>

0 commit comments

Comments
 (0)