@extends('layout.app')

@section('content')
<div class="container mt-4">

    <h2>Sale Details</h2>

    <div class="card shadow-sm p-3">

        <p><strong>ID:</strong> {{ $sale->id }}</p>
        <p><strong>Customer:</strong> {{ $sale->customer_name }}</p>
        <p><strong>Total Amount:</strong> ₹{{ $sale->total_amount }}</p>
        <p><strong>Date:</strong> {{ $sale->created_at->format('d-M-Y') }}</p>

        <a href="{{ route('user.sales.index') }}" class="btn btn-secondary mt-3">Back</a>

    </div>

</div>
@endsection
