git commit"fix flight type display and status handling"

This commit is contained in:
2026-08-18 19:49:46 +03:30
parent 62a95c411b
commit 40dbf3b575
10 changed files with 130 additions and 94 deletions
+11 -18
View File
@@ -41,32 +41,28 @@
<div class="col-md-3">
<select name="type"
class="form-control">
<select name="type" class="form-control">
<option value="">
همه انواع
</option>
<option value="internal"
@selected(request('type')=='internal')>
<option value="0"
@selected(request('type')=='0')>
داخلی
</option>
<option value="external"
@selected(request('type')=='external')>
<option value="2"
@selected(request('type')=='2')>
خارجی
</option>
<option value="charter"
@selected(request('type')=='charter')>
<option value="3"
@selected(request('type')=='3')>
چارتر
</option>
</select>
</div>
@@ -181,26 +177,23 @@
<td>
@switch($flight->type)
@switch($flight->type->value)
@case('internal')
@case(0)
داخلی
@break
@case('external')
@case(2)
خارجی
@break
@case('charter')
@case(3)
چارتر
@break
@endswitch
</td>
<td>
{{ number_format($flight->price) }}
</td>