@extends('layout.admin') @section('head') @extends('layout.header') @section('header_title', 'Today Cancel Appointments') @endsection @section('content')

Today Sales Appointments

View Sales Appointments Details

@php $totalAmount = 0; $totalPaid = 0; @endphp @foreach ($appointments as $appointment) @php $totalAmount += $appointment->Total_Amount; $totalPaid += $appointment->Total_Paid; @endphp @endforeach
# Customer Name Date Total Amount Bill Discount Net Amount Total Cash Total Card Total Online Total Paid Credit Employee
{{ $loop->iteration }} {{ $appointment->appointment->customers->Full_Name ?? 'Customer not found' }} {{ $appointment->Date_Time }} {{ number_format($appointment->Total_Amount, 2, '.', '') }} {{ $appointment->Bill_Discount }} {{ number_format($appointment->Net_Amount, 2, '.', '') }} {{ number_format($appointment->Cash_Paid, 2, '.', '') }} {{ number_format($appointment->Card_Paid, 2, '.', '') }} {{ number_format($appointment->Online_Paid, 2, '.', '') }} {{ number_format($appointment->Total_Paid, 2, '.', '') }} {{ number_format($appointment->Balance, 2, '.', '') }} {{ $appointment->appointment->employees->Full_Name ?? 'Employee not found' }}
Total Amount: {{ number_format($totalAmount, 2, '.', '') }}
Total Paid: {{ number_format($totalPaid, 2, '.', '') }}
@endsection @section('script') @endsection