@extends('layouts.master') @section('title', $title) @section('page_css') @endsection @section('content')
{{ $title }}
@csrf
@if (!empty($invoice) && count($invoice?->detail)) @php $counter = 1; $total = 0; @endphp @foreach ($invoice?->detail as $pro_det) @if ($counter == 1) @else @endif @php $total += $pro_det?->quantity * $pro_det?->price; @endphp @endforeach @else @endif
# Product UOM Quantity Price
{{ $counter++ }}
{{ $counter++ }}
1

Total: {{ isset($total) ? number_format($total, 2) : 0 }}

@endsection @section('page_js') @endsection