@extends('layouts.app') @section('title', $branch->name . ' - ' . __('messages.branch_details')) @section('content')

{{ $branch->name }}

{{ $branch->address ?? 'No Address' }} | {{ $branch->phone ?? 'No Phone' }}

Active
Showing: {{ $startDate }} to {{ $endDate }}

Total Sales

${{ number_format($stats['total_sales'], 2) }}

Gross Profit

${{ number_format($stats['gross_profit'], 2) }}

Total Expenses

${{ number_format($stats['total_expenses'], 2) }}

Net Profit

${{ number_format($stats['total_profit'], 2) }}

Branch Products by Category
@forelse($categories as $category)
{{ $category->name }}
@foreach($category->products as $product) @php $branchData = $product->branchPrices->first(); @endphp
@if($product->image) @else
@endif
{{ $product->name }}
${{ number_format($branchData->price ?? 0, 2) }} Stock: {{ $branchData->stock_quantity ?? 0 }}
@endforeach
@empty

No products assigned to this branch yet.

@endforelse
@endsection