@extends('layouts.horizontal', ['title' => 'Daily Sheet', 'topbarTitle' => 'Daily Sheet', 'nonav' => true]) @section('css') @endsection @section('content')

Daily Sheet

@php $breadcrumb = getCurrentMenuBreadcrumb(); @endphp @if(!empty($breadcrumb)) @endif
Filters

As On {{ \Carbon\Carbon::parse($today)->format('d-m-Y') }}

@php $cash_balance = 0; $cash_in_total = 0; $cash_out_total = 0; $cash_balance_total = 0; $card_total = 0; $voucher_total = 0; $check_total = 0; $online_total = 0; $gross_sale_total = 0; $discount_total = 0; $retained_total = 0; $balance_total = 0; $advance_adjusted_total = 0; $retained_used_total = 0; $cc_tip_total = 0; $sales_tax_total = 0; $cc_fee_total = 0; $payments_received_total = 0; $expense_total = 0; @endphp @if(count($vouchers) > 0) @endif @if(count($training_vouchers) > 0) @endif @if(count($gift_vouchers) > 0) @endif @if(count($advance_vouchers) > 0) @endif @if(count($expenses) > 0) @endif
@foreach ($vouchers as $voucher) @php $cash_balance = (float)$voucher->cash - (float)$voucher->return_cash; @endphp @if ($voucher->invoice_status == 'valid') @php $cash_in_total += $voucher->cash; $cash_out_total += $voucher->return_cash; $cash_balance_total += $cash_balance; $card_total += $voucher->card; $voucher_total += $voucher->voucher; $check_total += $voucher->bank; $online_total += $voucher->online; $gross_sale_total += ($voucher->service_income + $voucher->retail_income + $voucher->training_income + $voucher->recurring_income); $discount_total += ($voucher->retail_discount + $voucher->service_discount); $retained_total += $voucher->retained; $balance_total += $voucher->balance; $advance_adjusted_total += $voucher->advance_adjusted; $retained_used_total += $voucher->retained_used; $cc_tip_total += $voucher->cc_tip; $sales_tax_total += $voucher->sales_tax; $cc_fee_total += $voucher->cc_fee; $payments_received_total += ($cash_balance + $voucher->card + $voucher->voucher + $voucher->bank + $voucher->online); @endphp @endif @if($voucher->invoice_type == 'sale') @foreach($voucher->products as $product) invoice_status != 'valid') class="strike-through" @endif> @endforeach @endif @if($voucher->invoice_type == 'service') @foreach($voucher->services as $service) invoice_status != 'valid') class="strike-through" @endif> @endforeach @endif @endforeach
Invoice Details {{ $today }}
Inv.ID @ Customer By Cash Received Cash Return Cash Card Voucher Check Online Gross Sale Discount Retained Balance Adv.Adj. Ret.Adj. CC.Tip Tax CC.Fee Payments Received
{{ $voucher->invoice_day_seq }} {{ \Carbon\Carbon::parse($voucher->created_on)->format('H:i') }} {{ $voucher->customer_name }} {{ $voucher->created_by }} {{ number_format($voucher->cash, 2) }} {{ number_format($voucher->return_cash, 2) }}{{ number_format($cash_balance, 2) }} {{ number_format($voucher->card, 2) }} {{ number_format($voucher->voucher, 2) }} {{ number_format($voucher->bank, 2) }} {{ number_format($voucher->online, 2) }} {{ number_format($voucher->service_income + $voucher->retail_income + $voucher->training_income + $voucher->recurring_income, 2) }} {{ number_format($voucher->retail_discount + $voucher->service_discount, 2) }} {{ number_format($voucher->retained, 2) }} {{ number_format($voucher->balance, 2) }} {{ number_format($voucher->advance_adjusted, 2) }} {{ number_format($voucher->retained_used, 2) }} {{ number_format($voucher->cc_tip, 2) }} {{ number_format($voucher->sales_tax, 2) }} {{ number_format($voucher->cc_fee, 2) }} {{ number_format($cash_balance + $voucher->card + $voucher->voucher + $voucher->bank + $voucher->online, 2) }}
    - {{ $product->product_name }} | Qty: {{ $product->invoice_qty }} | Price: {{ number_format($product->price + $product->service_addition, 2) }} | Total: {{ number_format($product->final_price, 2) }}
    - {{ $service->service_name }} | Start: {{ $service->service_time }} | Duration: {{ $service->duration }} mins | Price: {{ number_format($service->price + $service->service_addition, 2) }}
Cash Received Cash Return Cash Card Voucher Check Online Gross Sale Discount Retained Balance Adv.Adj. Ret.Adj. CC.Tip Tax CC.Fee Payments Received
Invoices Breakup {{ number_format($cash_in_total, 2) }} - {{ number_format($cash_out_total, 2) }} {{ number_format($cash_balance_total, 2) }} {{ number_format($card_total, 2) }} {{ number_format($voucher_total, 2) }} {{ number_format($check_total, 2) }} {{ number_format($online_total, 2) }} {{ number_format($gross_sale_total, 2) }} {{ number_format($discount_total, 2) }} {{ number_format($retained_total, 2) }} {{ number_format($balance_total, 2) }} {{ number_format($advance_adjusted_total, 2) }} {{ number_format($retained_used_total, 2) }} {{ number_format($cc_tip_total, 2) }} {{ number_format($sales_tax_total, 2) }} {{ number_format($cc_fee_total, 2) }} {{ number_format($payments_received_total, 2) }}
@php $training_cash_in_total = 0; $training_cash_out_total = 0; $training_cash_balance_total = 0; $training_card_total = 0; $training_voucher_total = 0; $training_check_total = 0; $training_online_total = 0; $training_gross_sale_total = 0; $training_discount_total = 0; $training_retained_total = 0; $training_balance_total = 0; $training_advance_adjusted_total = 0; $training_retained_used_total = 0; $training_cc_tip_total = 0; $training_sales_tax_total = 0; $training_cc_fee_total = 0; $training_payments_received_total = 0; @endphp @foreach ($training_vouchers as $training_invoice) @php $training_cash_balance = (float)$training_invoice->cash - (float)$training_invoice->cash_return; @endphp @if($training_invoice->voucher_status == 'Active') @php $training_cash_in_total += $training_invoice->cash; $training_cash_out_total += $training_invoice->cash_return; $training_cash_balance_total += $training_cash_balance; $training_card_total += $training_invoice->card; $training_voucher_total += 0; $training_check_total += $training_invoice->bank; $training_online_total += $training_invoice->online; $training_gross_sale_total += ($training_invoice->service_income + $training_invoice->retail_income + $training_invoice->training_income + $training_invoice->recurring_income); $training_discount_total += ($training_invoice->retail_discount + $training_invoice->service_discount); $training_retained_total += $training_invoice->retained; $training_balance_total += $training_invoice->balance; $training_advance_adjusted_total += $training_invoice->advance_adjusted; $training_retained_used_total += $training_invoice->retained_used; $training_cc_tip_total += $training_invoice->cc_tip; $training_sales_tax_total += $training_invoice->sales_tax; $training_cc_fee_total += $training_invoice->cc_fee; $training_payments_received_total += ($training_cash_balance + $training_invoice->card + $training_invoice->voucher + $training_invoice->bank + $training_invoice->online); $cash_in_total += $training_invoice->cash; $cash_out_total += $training_invoice->cash_return; $cash_balance_total += $training_cash_balance; $card_total += $training_invoice->card; $voucher_total += 0; $check_total += $training_invoice->bank; $online_total += $training_invoice->online; $gross_sale_total += ($training_invoice->service_income + $training_invoice->retail_income + $training_invoice->training_income + $training_invoice->recurring_income); $discount_total += ($training_invoice->retail_discount + $training_invoice->service_discount); $retained_total += $training_invoice->retained; $balance_total += $training_invoice->balance; $advance_adjusted_total += $training_invoice->advance_adjusted; $retained_used_total += $training_invoice->retained_used; $cc_tip_total += $training_invoice->cc_tip; $sales_tax_total += $training_invoice->sales_tax; $cc_fee_total += $training_invoice->cc_fee; $payments_received_total += ($training_cash_balance + $training_invoice->card + $training_invoice->voucher + $training_invoice->bank + $training_invoice->online); @endphp @endif @endforeach
Training Invoice Details {{ $today }}
Inv.ID Customer By Cash Received Cash Return Cash Card Voucher Check Online Gross Sale Discount Retained Balance Adv.Adj. Ret.Adj. CC.Tip Tax CC.Fee Payments Received
{{ $training_invoice->id_program_invoices }} {{ $training_invoice->voucher_date }} {{ $training_invoice->customer_name }} {{ $training_invoice->created_by }} {{ number_format($training_invoice->cash, 2) }} {{ number_format($training_invoice->cash_return, 2) }}{{ number_format($training_cash_balance, 2) }} {{ number_format($training_invoice->card, 2) }} 0.0 {{ number_format($training_invoice->bank, 2) }} {{ number_format($training_invoice->online, 2) }} 0.0 0.0 0.0 0.0 0.0 0.0 {{ number_format($training_invoice->cc_tip, 2) }} {{ number_format($training_invoice->sales_tax, 2) }} {{ number_format($training_invoice->cc_fee, 2) }} {{ number_format($training_cash_balance + $training_invoice->card + $training_invoice->voucher + $training_invoice->bank + $training_invoice->online, 2) }}
Cash Received Cash Return Cash Card Voucher Check Online Gross Sale Discount Retained Balance Adv.Adj. Ret.Adj. CC.Tip Tax CC.Fee Payments Received
Training Breakup {{ number_format($training_cash_in_total, 2) }} - {{ number_format($training_cash_out_total, 2) }} {{ number_format($training_cash_balance_total, 2) }} {{ number_format($training_card_total, 2) }} {{ number_format($training_voucher_total, 2) }} {{ number_format($training_check_total, 2) }} {{ number_format($training_online_total, 2) }} {{ number_format($training_gross_sale_total, 2) }} {{ number_format($training_discount_total, 2) }} {{ number_format($training_retained_total, 2) }} {{ number_format($training_balance_total, 2) }} {{ number_format($training_advance_adjusted_total, 2) }} {{ number_format($training_retained_used_total, 2) }} {{ number_format($training_cc_tip_total, 2) }} {{ number_format($training_sales_tax_total, 2) }} {{ number_format($training_cc_fee_total, 2) }} {{ number_format($training_payments_received_total, 2) }}
@php $gift_cash_in_total = 0; $gift_cash_out_total = 0; $gift_cash_balance_total = 0; $gift_card_total = 0; $gift_voucher_total = 0; $gift_check_total = 0; $gift_online_total = 0; $gift_gross_sale_total = 0; $gift_discount_total = 0; $gift_retained_total = 0; $gift_balance_total = 0; $gift_advance_adjusted_total = 0; $gift_retained_used_total = 0; $gift_cc_tip_total = 0; $gift_sales_tax_total = 0; $gift_cc_fee_total = 0; $gift_payments_received_total = 0; @endphp @foreach ($gift_vouchers as $gift_voucher) @if ($gift_voucher->voucher_status == 'Active') @php $gift_cash_in_total += $gift_voucher->cash; $gift_cash_out_total += 0; $gift_cash_balance_total += $gift_voucher->cash; $gift_card_total += ($gift_voucher->card + $gift_voucher->cc_fee_expense); $gift_voucher_total += 0; $gift_check_total += $gift_voucher->bank; $gift_online_total += $gift_voucher->online; $gift_gross_sale_total += $gift_voucher->grosstotal_service; $gift_discount_total += 0; $gift_retained_total += 0; $gift_balance_total += 0; $gift_advance_adjusted_total += 0; $gift_retained_used_total += 0; $gift_cc_tip_total += 0; $gift_sales_tax_total += $gift_voucher->sales_tax; $gift_cc_fee_total += $gift_voucher->cc_fee; $gift_payments_received_total += ($gift_voucher->cash + $gift_voucher->card + $gift_voucher->cc_fee_expense + $gift_voucher->bank + $gift_voucher->online); $cash_in_total += $gift_voucher->cash; $cash_out_total += 0; $cash_balance_total += $gift_voucher->cash; $card_total += ($gift_voucher->card + $gift_voucher->cc_fee_expense); $voucher_total += 0; $check_total += $gift_voucher->bank; $online_total += $gift_voucher->online; $gross_sale_total += $gift_voucher->grosstotal_service; $discount_total += 0; $retained_total += 0; $balance_total += 0; $advance_adjusted_total += 0; $retained_used_total += 0; $cc_tip_total += 0; $sales_tax_total += $gift_voucher->sales_tax; $cc_fee_total += $gift_voucher->cc_fee; $payments_received_total += ($gift_voucher->cash + $gift_voucher->card + $gift_voucher->cc_fee_expense + $gift_voucher->bank + $gift_voucher->online); @endphp @endif @endforeach
Gift Voucher Details {{ $today }}
GV.ID Customer By Cash Received Cash Return Cash Card Voucher Check Online Gross Sale Discount Retained Balance Adv.Adj. Ret.Adj. CC.Tip Tax CC.Fee Payments Received
{{ $gift_voucher->id_account_vouchers }} {{ $gift_voucher->voucher_date }} {{ $gift_voucher->customer_name }} {{ $gift_voucher->created_by }} {{ number_format($gift_voucher->cash, 2) }} 0.0 {{ number_format($gift_voucher->cash, 2) }} {{ number_format($gift_voucher->card + $gift_voucher->cc_fee_expense, 2) }} 0.0 {{ number_format($gift_voucher->bank, 2) }} {{ number_format($gift_voucher->online, 2) }} {{ number_format($gift_voucher->grosstotal_service, 2) }} 0.0 0.0 0.0 0.0 0.0 0.0 {{ number_format($gift_voucher->sales_tax, 2) }} {{ number_format($gift_voucher->cc_fee, 2) }} {{ number_format($gift_voucher->cash + $gift_voucher->card + $gift_voucher->cc_fee_expense + $gift_voucher->bank + $gift_voucher->online, 2) }}
Cash Received Cash Return Cash Card Voucher Check Online Gross Sale Discount Retained Balance Adv.Adj. Ret.Adj. CC.Tip Tax CC.Fee Payments Received
Gift Voucher Breakup {{ number_format($gift_cash_in_total, 2) }} - {{ number_format($gift_cash_out_total, 2) }} {{ number_format($gift_cash_balance_total, 2) }} {{ number_format($gift_card_total, 2) }} {{ number_format($gift_voucher_total, 2) }} {{ number_format($gift_check_total, 2) }} {{ number_format($gift_online_total, 2) }} {{ number_format($gift_gross_sale_total, 2) }} {{ number_format($gift_discount_total, 2) }} {{ number_format($gift_retained_total, 2) }} {{ number_format($gift_balance_total, 2) }} {{ number_format($gift_advance_adjusted_total, 2) }} {{ number_format($gift_retained_used_total, 2) }} {{ number_format($gift_cc_tip_total, 2) }} {{ number_format($gift_sales_tax_total, 2) }} {{ number_format($gift_cc_fee_total, 2) }} {{ number_format($gift_payments_received_total, 2) }}
@php $advance_cash_in_total = 0; $advance_cash_out_total = 0; $advance_cash_balance_total = 0; $advance_card_total = 0; $advance_voucher_total = 0; $advance_check_total = 0; $advance_online_total = 0; $advance_gross_sale_total = 0; $advance_discount_total = 0; $advance_retained_total = 0; $advance_balance_total = 0; $advance_advance_adjusted_total = 0; $advance_retained_used_total = 0; $advance_cc_tip_total = 0; $advance_sales_tax_total = 0; $advance_cc_fee_total = 0; $advance_payments_received_total = 0; @endphp @foreach ($advance_vouchers as $advance_voucher) @php if($advance_voucher->voucher_status == 'Active') { $advance_cash_in_total += $advance_voucher->cash; $advance_cash_out_total += 0; $advance_cash_balance_total += $advance_voucher->cash; $advance_card_total += ($advance_voucher->card + $advance_voucher->cc_fee_expense); $advance_voucher_total += 0; $advance_check_total += $advance_voucher->bank; $advance_online_total += $advance_voucher->online; $advance_gross_sale_total += 0; $advance_discount_total += 0; $advance_retained_total += 0; $advance_balance_total += 0; $advance_advance_adjusted_total += 0; $advance_retained_used_total += 0; $advance_cc_tip_total += 0; $advance_sales_tax_total += 0; $advance_cc_fee_total += $advance_voucher->cc_fee; $advance_payments_received_total += ($advance_voucher->cash + $advance_voucher->card + $advance_voucher->cc_fee_expense + $advance_voucher->bank + $advance_voucher->online); $cash_in_total += $advance_voucher->cash; $cash_out_total += 0; $cash_balance_total += $advance_voucher->cash; $card_total += ($advance_voucher->card + $advance_voucher->cc_fee_expense); $voucher_total += 0; $check_total += $advance_voucher->bank; $online_total += $advance_voucher->online; $gross_sale_total += 0; $discount_total += 0; $retained_total += 0; $balance_total += 0; $advance_adjusted_total += 0; $retained_used_total += 0; $cc_tip_total += 0; $sales_tax_total += 0; $cc_fee_total += $advance_voucher->cc_fee; $payments_received_total += ($advance_voucher->cash + $advance_voucher->card + $advance_voucher->cc_fee_expense + $advance_voucher->bank + $advance_voucher->online); } @endphp @endforeach
Advance Voucher Details {{ $today }}
Adv. ID Customer By Cash Received Cash Return Cash Card Voucher Check Online Gross Sale Discount Retained Balance Adv.Adj. Ret.Adj. CC.Tip Tax CC.Fee Payments Received
{{ $advance_voucher->id_account_vouchers }} {{ $advance_voucher->voucher_date }} {{ $advance_voucher->customer_name }} {{ $advance_voucher->service_names }} By {{ $advance_voucher->created_by }} {{ number_format($advance_voucher->cash, 2) }} 0.0 {{ number_format($advance_voucher->cash, 2) }} {{ number_format($advance_voucher->card + $advance_voucher->cc_fee_expense, 2) }} 0.0 {{ number_format($advance_voucher->bank, 2) }} {{ number_format($advance_voucher->online, 2) }} 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 {{ number_format($advance_voucher->cc_fee, 2) }} {{ number_format($advance_voucher->cash + $advance_voucher->card + $advance_voucher->cc_fee_expense + $advance_voucher->bank + $advance_voucher->online, 2) }}
Cash Received Cash Return Cash Card Voucher Check Online Gross Sale Discount Retained Balance Adv.Adj. Ret.Adj. CC.Tip Tax CC.Fee Payments Received
Advance Voucher Breakup {{ number_format($advance_cash_in_total, 2) }} - {{ number_format($advance_cash_out_total, 2) }} {{ number_format($advance_cash_balance_total, 2) }} {{ number_format($advance_card_total, 2) }} {{ number_format($advance_voucher_total, 2) }} {{ number_format($advance_check_total, 2) }} {{ number_format($advance_online_total, 2) }} {{ number_format($advance_gross_sale_total, 2) }} {{ number_format($advance_discount_total, 2) }} {{ number_format($advance_retained_total, 2) }} {{ number_format($advance_balance_total, 2) }} {{ number_format($advance_advance_adjusted_total, 2) }} {{ number_format($advance_retained_used_total, 2) }} {{ number_format($advance_cc_tip_total, 2) }} {{ number_format($advance_sales_tax_total, 2) }} {{ number_format($advance_cc_fee_total, 2) }} {{ number_format($advance_payments_received_total, 2) }}
@ Cash Received Cash Return Cash Card Voucher Check Online Gross Sale Discount Retained Balance Adv.Adj. Ret.Adj. CC.Tip Tax CC.Fee Payments Received
Overall Total {{ $business }} {{ \Carbon\Carbon::now()->format('d.m.Y H:i') }} {{ number_format($cash_in_total, 2) }} - {{ number_format($cash_out_total, 2) }} {{ number_format($cash_balance_total, 2) }} {{ number_format($card_total, 2) }} {{ number_format($voucher_total, 2) }} {{ number_format($check_total, 2) }} {{ number_format($online_total, 2) }} {{ number_format($gross_sale_total, 2) }} {{ number_format($discount_total, 2) }} {{ number_format($retained_total, 2) }} {{ number_format($balance_total, 2) }} {{ number_format($advance_adjusted_total, 2) }} {{ number_format($retained_used_total, 2) }} {{ number_format($cc_tip_total, 2) }} {{ number_format($sales_tax_total, 2) }} {{ number_format($cc_fee_total, 2) }} {{ number_format($payments_received_total, 2) }}
@foreach ($expenses as $expense) @php if($expense->voucher_status == 'Active' && str_contains($expense->account_heads, 'Till')) { $expense_total += $expense->expense_amount; } @endphp @endforeach
Expenses Details {{ $today }}
Expense ID Paid To Narration Accounts Amount Paid By
{{ $expense->id_account_vouchers }} {{ !str_contains($expense->account_heads, 'Salar') ? $expense->business_partner_name : '' }} {{ $expense->description }} {!! $expense->account_heads !!} {{ number_format($expense->expense_amount, 2) }} {{ $expense->created_by }}
Total Expenses {{ number_format($expense_total, 2) }}
Cash Register Details {{ $today }}
Cash Reconciliation Cash Ledger Denominations
@php $expected_cash_total = ($cash_balance_total + $retained_total - $cc_tip_total - $expense_total); @endphp
Today's Cash:{{ number_format($cash_balance_total, 2) }}
+ Cash Retained:{{ number_format($retained_total, 2) }}
- Card Tips:{{ number_format($cc_tip_total, 2) }}
- Cash Payments:{{ number_format($expense_total, 2) }}
Expected Cash Total:{{ number_format(($cash_balance_total + $retained_total - $cc_tip_total - $expense_total), 2) }}
@php // Calculate Closing Cash $closing_cash = $expected_cash_total + ($yesterdayCashRegister != null ? $yesterdayCashRegister->till_amounts : 0) + ($todayCashRegister != null ? $todayCashRegister->cash_addition : 0); @endphp
Till Cash Balance C/F:{{ number_format($yesterdayCashRegister != null ? $yesterdayCashRegister->till_amounts : 0, 2) }}
Additional Morning Cash:{{ number_format($todayCashRegister != null ? $todayCashRegister->cash_addition : 0, 2) }}
Today Cash Reciepts:{{ number_format($expected_cash_total, 2) }}
Closing Cash:{{ number_format($closing_cash, 2) }}
@php $denominations = [ 5000, 1000, 500, 200, 100, 75, 50, 20, 10, 5, 1 ]; $denomination_sum = 0; @endphp @foreach($denominations as $denomination) @php $column = 'x' . (int) $denomination; // build column name like x1000, x500, etc. $count = $todayCashRegister->$column ?? 0; $total = $denomination * $count; $denomination_sum += $total; @endphp @endforeach @php // Calculate Difference $difference = $denomination_sum - $closing_cash; @endphp
{{ config('constants.CURRENCY') . number_format($denomination, 2) . ' x ' . $count . ' = ' }} {{ number_format($total, 2) }}
Total Denominations: {{ number_format($denomination_sum, 2) }}
Difference: {{ number_format($difference, 2) }}
Printed By: {{ session('user_name') }} @ {{ now()->format('d-m-Y H:i') }} Checked By: ________________________ Approved By: ________________________
@endsection @section('scripts') @endsection