@extends('layouts.front.home') @section('title') {{ __('vendor_branches.my_branches') }} - Vendor | Hema @endsection @section('css') @endsection @section('content') @php $isAr = app()->getLocale() === 'ar'; $branchesCount = method_exists($branches, 'total') ? $branches->total() : $branches->count(); @endphp
@include('flash::message')

{{ __('vendor_branches.my_branches') }}

{{ __('vendor_branches.branches_description') }}

{{ __('vendor_branches.all_branches') }}
{{ $branchesCount }} {{ __('vendor_branches.branches') }}
@forelse($branches as $branch)
{{ $branch->display_name }}
@if($branch->trashed()) {{ $isAr ? 'مؤرشفة' : 'Archived' }} @elseif($branch->is_active) {{ $isAr ? 'نشط' : 'Active' }} @else {{ $isAr ? 'معطل' : 'Inactive' }} @endif @if($branch->is_default && !$branch->trashed()) {{ $isAr ? 'افتراضي' : 'Default' }} @endif

@if($branch->address) {{ $branch->address }} @endif @if($branch->city) {{ $branch->city }} @endif @if($branch->phone) {{ $branch->phone }} @endif @if($branch->latitude && $branch->longitude) {{ $branch->latitude }}, {{ $branch->longitude }} @endif

@if($branch->trashed())
@csrf
@else {{ $isAr ? 'تعديل' : 'Edit' }}
@csrf
@csrf @method('DELETE')
@endif
@empty
{{ $isAr ? 'لا توجد فروع' : 'No Branches Yet' }}

{{ $isAr ? 'أضف أول فرع لشركتك باستخدام الزر أعلاه.' : 'Add your first branch using the button above.' }}

@endforelse @if(method_exists($branches, 'hasPages') && $branches->hasPages())
{{ $branches->links('pagination::bootstrap-5') }}
@endif
@endsection @section('script') @endsection