@extends('layouts.admin') @section('title', 'End of Day Report') @section('content')
@if(auth()->user()->isAdmin()) @endif
Total Sales
Rs {{ number_format($totalSales, 0) }}
Cash
Rs {{ number_format($cashSales, 0) }}
Card
Rs {{ number_format($cardSales, 0) }}
Online (Card/Online payments)
Rs {{ number_format($onlineSales, 0) }}
@if(isset($onlineOrderCount))
Online Orders (Website)
{{ $onlineOrderCount }}
Rs {{ number_format($onlineOrderAmount ?? 0, 0) }}
@endif

Cash Drawer Log

@foreach($drawers as $d) @endforeach
Opened By Opened At Closed At Opening Cash Closing Cash
{{ $d->user->name ?? '-' }} {{ $d->opened_at->format('Y-m-d H:i') }} {{ $d->closed_at?->format('Y-m-d H:i') ?? '-' }} Rs {{ number_format($d->opening_cash, 0) }} {{ $d->closing_cash ? 'Rs ' . number_format($d->closing_cash, 0) : '-' }}
@endsection