@extends('layouts.app') @section('title', 'Branch Details - Axis Max Life Admin') @section('header', 'Branch Details') @section('content')

Branch: {{ $branch->branch_code }}

@if($branch->branch_name)

{{ $branch->branch_name }}

@endif
Back to List

Total Images

{{ $branch->images->count() }}/5

Created

{{ $branch->created_at->format('d M Y') }}

Total Size

@php $totalSize = $branch->images->sum('file_size'); echo $totalSize > 0 ? round($totalSize / 1048576, 2) . ' MB' : '0 MB'; @endphp

@if(session('success')) @endif

Uploaded Images

{{ $branch->images->count() }} of 5 images
@if($branch->images->isEmpty())

No images uploaded yet

Images uploaded for this branch will appear here

@else
@foreach($branch->images as $image)

{{ Str::limit($image->original_name, 20) }}

{{ round($image->file_size / 1024, 2) }} KB {{ $image->created_at->format('d M') }}
@csrf @method('DELETE')
@endforeach
Storage Usage {{ $branch->images->count() }}/5 images used
@endif
@endsection