@extends('layouts.app') @section('content')

Shift Report

Back
Shift No: {{ $shift->shift_no }}
User: {{ $shift->user?->name ?: '-' }}
Branch: {{ $shift->branch?->name ?: '-' }}
Opened: {{ $shift->opened_at?->format('Y-m-d H:i') }}
Closed: {{ $shift->closed_at?->format('Y-m-d H:i') ?: 'Open' }}
Status: {{ ucfirst($shift->status) }}
@if($reportType === 'detailed')

Items Sold

@forelse($itemRows as $item) @empty @endforelse
Product Category Qty S.Price Total
{{ $item->product_name }} {{ $item->category_name }} {{ number_format($item->quantity, 2) }} {{ \App\Models\SystemSetting::formatMoney($item->unit_price) }} {{ \App\Models\SystemSetting::formatMoney($item->total_amount) }}
No item sales found.
Totals {{ number_format($itemRows->sum('quantity'), 2) }} {{ \App\Models\SystemSetting::formatMoney($itemRows->sum('total_amount')) }}
@else
Total Sales
{{ \App\Models\SystemSetting::formatMoney($totals->total_sales ?? 0) }}
Cleared Sales
{{ \App\Models\SystemSetting::formatMoney($totals->cleared_sales ?? 0) }}
Uncleared Bills
{{ \App\Models\SystemSetting::formatMoney($totals->uncleared_sales ?? 0) }}
Expenses
{{ \App\Models\SystemSetting::formatMoney($expensesTotal) }}
Opening Cash
{{ \App\Models\SystemSetting::formatMoney($shift->opening_cash) }}
Expected Cash
{{ \App\Models\SystemSetting::formatMoney($expectedCash) }}
Till Collections
{{ \App\Models\SystemSetting::formatMoney($tillCollections) }}
Counted Cash
{{ \App\Models\SystemSetting::formatMoney($shift->closing_cash ?? 0) }}
Difference
{{ \App\Models\SystemSetting::formatMoney($cashDifference) }}

Payment Methods

@forelse($paymentRows as $payment) @empty @endforelse
Payment Method Entries Amount
{{ $payment->paymentMethod?->name ?: '-' }} {{ number_format($payment->entries) }} {{ \App\Models\SystemSetting::formatMoney($payment->total_amount) }}
No payments found.
Total {{ \App\Models\SystemSetting::formatMoney($paymentRows->sum('total_amount')) }}
@endif
@endsection