@extends('layouts.app') @section('title', 'Sub Zone Details') @section('page-title', 'Sub Zone Details') @section('content')
Sub Zone Details: {{ $subZone->name }}
ID: {{ $subZone->id }}
Name: {{ $subZone->name }}
Code: -
Zone: {{ $subZone->zone->name }}
Status: @if($subZone->is_active) Active @else Inactive @endif
Created: {{ $subZone->created_at->format('M d, Y H:i') }}
Updated: {{ $subZone->updated_at->format('M d, Y H:i') }}
Boxes: {{ $subZone->boxes->count() }}
@if($subZone->description)
Description:

{{ $subZone->description }}

@endif
Statistics

{{ $subZone->boxes->count() }}

Total Boxes
Boxes
@if($subZone->boxes->count() > 0)
@foreach($subZone->boxes as $box)
{{ $box->name }}
@if($box->location)
{{ $box->location }} @endif
@if($box->is_active) Active @else Inactive @endif
@endforeach
@else

No boxes found

Add Box
@endif
@endsection