@extends('admin.template.master') @section('content')
@csrf
Select Branch
@foreach ($branches as $br) @if ($branch_ids != '') @if (in_array($br->branch_id, $branch_ids))
{{ $br->branch_name }}
@else
{{ $br->branch_name }}
@endif @else
{{ $br->branch_name }}
@endif @endforeach


@php $total = 0; @endphp @foreach ($expenses as $exp) @php $total += $exp->exp_amount; @endphp @endforeach
# {{__('messages.date')}} {{__('messages.branch')}} {{__('messages.category')}} {{__('messages.title')}} {{__('messages.notes')}} {{__('messages.amount')}}
{{ $loop->iteration }} {{ date('d-m-Y', strtotime($exp->exp_date)) }} {{ $exp->branch->branch_name??'General' }} {{ $exp->category->category_name??'Try'}} {{ $exp->title }} {{ $exp->notes }} {{ number_format($exp->exp_amount, 3) }}
            {{ $total }}
@endsection @section('customjs') @endsection