@extends('layouts.app') @section('title', 'Branches') @section('actions') @can('create', \App\Models\Branch::class) @if ($canAdd) New branch @endif @endcan @endsection @section('content')
@foreach ($branches as $branch) @endforeach
NameCodeCityPhoneUsersStatus
{{ $branch->name }} @if ($branch->is_main)main@endif {{ $branch->code }} {{ $branch->city ?? '—' }} {{ $branch->phone ?? '—' }} {{ $branch->users_count }} {{ $branch->status }} @can('update', $branch) Edit @endcan @if (! $branch->is_main) @can('delete', $branch)
@csrf @method('DELETE')
@endcan @endif
@endsection