@extends('layouts.app') @section('title', 'View Invoice') @php($prefix = auth()->user()->role === 'admin' ? 'admin.' : 'user.') @section('content')
Created on: {{ $invoice->created_at->format('F d, Y') }}
{{ $invoice->customer_name }}
{{ $invoice->customer_email }}
{{ $invoice->customer_number }}
{{ $invoice->customer_address }}
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) }}
{{ $invoice->description }}