@extends('layouts.app') @section('page_title','Close Daily Account') @section('content')<form method="POST" action="{{ route('daily-closing.store') }}">@csrf<div class="card top-card"><div class="card-body"><div class="row g-3"><div class="col-md-4"><label>Date</label><input type="date" name="closing_date" value="{{ $date }}" class="form-control" required></div>@foreach(['opening_cash'=>$opening,'cash_sales'=>$cashSales,'credit_sales'=>$creditSales,'customer_receipts'=>$receipts,'supplier_payments'=>$supplierPayments,'expenses'=>$expenses,'expected_cash'=>$expected] as $name=>$value)<div class="col-md-4"><label>{{ ucwords(str_replace('_',' ',$name)) }}</label><input type="number" step="0.01" name="{{ $name }}" value="{{ $value }}" class="form-control" readonly></div>@endforeach<div class="col-md-4"><label>Actual Cash</label><input type="number" step="0.01" name="actual_cash" value="{{ $expected }}" class="form-control" required></div><div class="col-12"><label>Notes</label><textarea name="notes" class="form-control"></textarea></div><div class="col-12 text-end"><button class="btn btn-success btn-lg">Save Closing</button></div></div></div></div></form>@endsection
