@include('partials.sidebar')
@include('partials.topbar')

{{ __('ui.branches.heading') }}

{{ __('ui.branches.create_btn') }}
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

{{ __('ui.branches.list_title') }}

@if ($branches->isEmpty())

{{ __('ui.branches.empty') }}

@else
@foreach ($branches as $branch)

{{ $branch->branch_name }}

{{ optional($branch->city)->city_name }} / {{ optional($branch->district)->district_name }}

{{ $branch->address ?: '—' }}

@if (!empty($branch->branch_phone))

{{ $branch->branch_phone }}

@endif
{{ $branch->status ? __('ui.branches.active') : __('ui.branches.passive') }}
@csrf @method('PATCH')
@endforeach
@endif