@extends('layout.app') @section('content')
SL | Invoice | Document | Provider | Billing Date | Total | Paid | Due | Action |
---|---|---|---|---|---|---|---|---|
{{ $item->id }} | {{ $item->invoice_no }} |
@php
$isS3 = checkSettings('store_image_to_s3') === 'enable';
$imgUrl = $isS3
? $item->document // assume full URL from S3
: (!empty($item->document) ? asset('storage/bandPurchase/' . $item->document) : null);
@endphp
@if ($imgUrl)
Image Not Provided@endif |
{{ $item->provider->company_name ?? '' }} | {{ $item->billing_date }} | {{ $item->total_price }} | {{ $item->paid }} | @php $d_amount = $item->total_price - $item->paid; @endphp {{ number_format($d_amount, 2) }} | @php $total += $item->total_price; $paid += $item->paid; $due += $item->total_price - $item->paid; @endphp |
Total | {{ number_format($total, 2) }} | {{ number_format($paid, 2) }} | {{ number_format($due, 2) }} |