@extends('admin.layouts.master') @section('title', __('lang.offices')) @section('content')

{{ __('lang.offices') }}

@can('offices.create') {{ __('lang.add_office') }} @endcan
@forelse ($offices as $office) @empty @endforelse
{{ __('lang.office_name') }} {{ __('lang.phone') }} {{ __('lang.email') }} {{ __('lang.city') }} {{ __('lang.status') }} {{ __('lang.actions') }}
{{ $office->name }} {{ $office->phone ?: '—' }} {{ $office->email ?: '—' }} {{ $office->city?->name_ar ?? '—' }} {{ $office->is_active ? __('lang.active') : __('lang.inactive') }}
@can('offices.update') @endcan @can('offices.delete') @endcan
{{ __('lang.no_offices_yet') }}
@if ($offices->hasPages())
{{ $offices->links() }}
@endif @endsection