{{-- --}} @php $total = 0; $total_collection = 0; $due_amount = 0; @endphp @foreach($bookings as $key => $booking) {{-- --}} @php $total += $booking->plot_price; @endphp @endforeach
{{ trans('cruds.project_name') }} {{ trans('cruds.booking_date') }} {{ trans('cruds.sell_by') }} {{ trans('cruds.block_name') }} {{ trans('cruds.road_name') }} {{ trans('cruds.plot') }} {{ trans('cruds.file_no') }} {{ trans('cruds.total_amount') }} {{ trans('cruds.collection_amount') }} {{ trans('cruds.due_amount') }}
{{ $booking?->project?->project_name }} {{ $booking->booking_date ?? '' }} {{ $booking?->executive?->sales_concern_name }} {{ $booking?->block?->block_name }} {{ $booking?->road?->road_name }} {{ $booking?->plot?->plot_no }} {{ $booking?->schedule?->file_no }} {{ money_format_bd($booking->plot_price ?? 0) }} @if(isset($booking->collections) && $booking->collections->count() > 0) {{ money_format_bd($booking->collections->sum('collection_amount')) }} @php $total_collection += $booking->collections->sum('collection_amount'); @endphp @endif @if($booking->collections) {{ money_format_bd(($booking->plot_price ?? 0) - $booking->collections->sum('collection_amount')) }} @php $due_amount += ($booking->plot_price ?? 0) - $booking->collections->sum('collection_amount'); @endphp @endif
{{ __('cruds.total_amount') }} {{ money_format_bd($total ?? 0) }} {{ __('cruds.tk') }} {{ money_format_bd($total_collection ?? 0) }} {{ __('cruds.tk') }} {{ money_format_bd($due_amount ?? 0) }} {{ __('cruds.tk') }}