沒有分店資料會錯的問題 20250616
This commit is contained in:
parent
6a93b717e7
commit
eac66d8545
@ -1,8 +1,9 @@
|
|||||||
@php
|
@php
|
||||||
use App\Models\Branch;
|
use App\Models\Branch;
|
||||||
$branch= Branch::findOrFail(1);
|
$branch= Branch::first();
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
|
@if ($branch)
|
||||||
<x-admin.section-header title="{{ $branch->name .' '. __('rooms.list').' '. $branch->external_ip}}">
|
<x-admin.section-header title="{{ $branch->name .' '. __('rooms.list').' '. $branch->external_ip}}">
|
||||||
<x-wireui:button
|
<x-wireui:button
|
||||||
wire:click="$dispatchTo('forms.room-form', 'openModal')"
|
wire:click="$dispatchTo('forms.room-form', 'openModal')"
|
||||||
@ -10,4 +11,7 @@ $branch= Branch::findOrFail(1);
|
|||||||
label="{{ __('rooms.CreateNew') }}"
|
label="{{ __('rooms.CreateNew') }}"
|
||||||
class="bg-blue-600 text-white"
|
class="bg-blue-600 text-white"
|
||||||
/>
|
/>
|
||||||
</x-admin.section-header>
|
</x-admin.section-header>
|
||||||
|
@else
|
||||||
|
<x-admin.section-header title="{{__('rooms.list')}}"></x-admin.section-header>
|
||||||
|
@endif
|
Loading…
x
Reference in New Issue
Block a user