@extends('layouts.app') @section('title', 'Zones Management') @section('page-title', 'Zones Management') @section('content')
Zones Management
@if(\App\Helpers\PermissionHelper::isSuperUser(auth()->id())) Showing all zones (Super User) @else Showing zones from your authorized branches @endif
Add New Zone
@if($zones->count() > 0)
@foreach($zones as $zone) @endforeach
ID Name Branch Code Description Sub Zones Status Created Actions
{{ $zone->id }} {{ $zone->name }} @if($zone->branch) {{ $zone->branch->name }} @if($zone->branch->code)
{{ $zone->branch->code }} @endif @else No Branch @endif
{{ $zone->code }} {{ Str::limit($zone->description, 50) }} {{ $zone->subZones->count() }} Sub Zones @if($zone->is_active) Active @else Inactive @endif {{ $zone->created_at->format('M d, Y') }}
{{ $zones->links() }}
@else
No Zones Found

Start by creating your first zone.

Create First Zone
@endif
@endsection @section('scripts') @endsection