@extends('layouts.app') @section('title', 'View Invoice') @php($prefix = auth()->user()->role === 'admin' ? 'admin.' : 'user.') @section('content')

Invoice #{{ $invoice->invoice_number }}

Created on: {{ $invoice->created_at->format('F d, Y') }}

Billed To

{{ $invoice->customer_name }}

{{ $invoice->customer_email }}

{{ $invoice->customer_number }}

{{ $invoice->customer_address }}

Payment Details

Brand: {{ $invoice->brand->name }}

Due Date: {{ $invoice->due_date->format('F d, Y') }}

Status: @if($invoice->status) Active @else Inactive @endif

Payment Status: {{ ucfirst($invoice->payment_status) }}

@if($invoice->description)

Description

{{ $invoice->description }}

@endif
Subtotal {{ number_format($invoice->amount, 2) }} BDT
Tax (0%) 0.00 BDT
Total {{ number_format($invoice->amount, 2) }} BDT
@endsection