@extends('layouts.app') @section('page_title','Customer Receipt') @section('content')<form method="POST" action="{{ route('customer-receipts.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="receipt_date" value="{{ date('Y-m-d') }}" class="form-control" required></div><div class="col-md-4"><label>Customer</label><select name="customer_id" class="form-select">@foreach($customers as $c)<option value="{{ $c->id }}">{{ $c->name }}</option>@endforeach</select></div><div class="col-md-4"><label>Currency</label><select name="currency_id" class="form-select">@foreach($currencies as $cur)<option value="{{ $cur->id }}">{{ $cur->code }}</option>@endforeach</select></div><input type="hidden" name="exchange_rate" value="1"><div class="col-md-6"><label>Amount</label><input type="number" step="0.01" name="amount" class="form-control" required></div><div class="col-md-6"><label>Payment Method</label><input name="payment_method" value="cash" 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">Save Receipt</button></div></div></div></div></form>@endsection
