{{-- Header only: logo + text (no sidebar) --}}
{{ $adminLogoText }} {{ $adminLogoText }}
@if(isset($viewingBranch) && $viewingBranch) Back to Branches @else
@csrf
@endif
@if($errors->any())
@endif @if(isset($viewingBranch) && $viewingBranch) {{-- Single branch view: assign cashiers and list their sales --}}

{{ strtoupper($viewingBranch->name) }}

Assign cashiers to this branch and view each cashier's sales at this branch: Day = that cashier's sales today, Month = that cashier's sales this month, Year = that cashier's sales this year.

@csrf
@php $cashiersWithSales = $cashiersWithSales ?? collect(); @endphp @if($cashiersWithSales->isEmpty())

No cashiers assigned to this branch yet.@if($canAccessSalesBranch ?? false) Use "Assign" above to add cashiers.@endif

@else
@csrf
@if($canAccessSalesBranch ?? false) @endif @foreach($cashiersWithSales as $cashier) @if($canAccessSalesBranch ?? false) @endif @endforeach
CASHIER DAY (today) MONTH (this month) YEAR (this year)
{{ $cashier->full_name ? strtoupper($cashier->full_name) : strtoupper($cashier->username) }} ₱{{ number_format($cashier->sales_today ?? 0, 2) }} ₱{{ number_format($cashier->sales_this_month ?? 0, 2) }} ₱{{ number_format($cashier->sales_this_year ?? 0, 2) }}
@if($canAccessSalesBranch ?? false)
@endif
@endif
@if($canAccessSalesBranch ?? false) @endif @else {{-- Branch list view --}}

Sales Branch

Manage location branches. Day, Month, and Year columns show sales totals for today, this month, and this year (realtime).

@if($canAccessSalesBranch ?? false) @endif
@php $branches = $branches ?? collect(); @endphp @if($branches->isEmpty())

No branches yet. Click "Add" to add your first location branch.

@else
@csrf
@if($canAccessSalesBranch ?? false) @endif @foreach($branches as $branch) @if($canAccessSalesBranch ?? false) @endif @endforeach
BRANCH DAY (today) MONTH (this month) YEAR (this year)
{{ strtoupper($branch->name ?? '-') }} ₱{{ number_format($branch->sales_today ?? 0, 2) }} ₱{{ number_format($branch->sales_this_month ?? 0, 2) }} ₱{{ number_format($branch->sales_this_year ?? 0, 2) }}
@if($canAccessSalesBranch ?? false) @endif @if($canAccessSalesBranch ?? false) @endif
@endif
@endif
@if((!isset($viewingBranch) || !$viewingBranch) && ($canAccessSalesBranch ?? false)) @endif