@extends('layouts.app') @section('page-title', 'Offices') @section('content') @can('create-offices') Add Office @endcan
@if(array_filter($filters)) Clear @endif
@if($offices->isEmpty())

No offices found

@if(array_filter($filters)) Try adjusting your filters @else Add your first office to get started @endif

@else
@foreach($offices as $office) @endforeach
Office Name Country Users Status Actions

{{ $office->name }}

@if($office->address)

{{ $office->address }}

@endif
{{ $office->country?->name ?? '-' }} {{ $office->users_count }}
@can('edit-offices') @endcan
@can('edit-offices') @endcan @can('delete-offices')
Delete?
@csrf @method('DELETE')
@endcan
@if($offices->hasPages())
{{ $offices->links() }}
@endif @endif
@endsection