@extends('layouts.admin.master') @section('title', 'Sales Reports') @section('content')
Sales Reports
{{--
--}}
@php $totalAmount = 0; $totalPromo = 0; @endphp @if (count($sales) != 0) @php $count = 1; @endphp @foreach ($sales as $sale) @if ($sale['total_item_promo_amount'] != null) @else @endif @php $count++; $totalAmount += $sale['total_amount']; @endphp @endforeach @endif
No Voucher No: Floor Name Table Name Table Order No: Customer Name Waiter Name Cashier Name Order Date Total Amount Item Promo Net Amount Paid Amount Balance Change Delivery Charges
{{ $count }} {{ $sale['sale_voucher_number'] }} {{ $sale['floor_name'] }} {{ $sale['table_name'] }} {{ $sale['table_order_number'] }} {{ $sale['customer_name'] }} {{ $sale['waiter_name'] }} {{ $sale['cashier_name'] }} {{ date('d-M-y', strtotime($sale['order_date'])) }} {{ $sale['total_amount'] }} {{ $sale['total_item_promo_amount'] }} @php $totalPromo += $sale['total_item_promo_amount']; @endphp @php $totalPromo += 0; @endphp {{ $sale['net_amount'] }} {{ $sale['paid_amount'] }} {{ $sale['balance_amount'] }} {{ $sale['change_amount'] }} {{ $sale['delivery_charges'] }}
@endsection