@extends('layouts.master') @section('title', $title) @section('page_css') @endsection @section('content')
{{ $title }}
@csrf {{-- --}}
@if (isset($customer) && $customer != 0) @else @endif
{{--
--}}
@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 Sub Total
{{ $counter++ }}
@php $balance = $item?->inventory?->balance; $type = $item?->type; $conversion_rate = $pro_det?->inv?->conversion; @endphp @php $gv_inv_balance = 0; @endphp @if ($pro_det->uom == $pro_det?->prd?->sellinguom?->id) @if ($conversion_rate > 0) @php $gv_inv_balance = $pro_det?->quantity / $conversion_rate; @endphp @endif @elseif ($pro_det->uom == $pro_det?->prd?->puruom?->id) @php $gv_inv_balance = $pro_det?->quantity; @endphp @endif
{{ $counter++ }}
@php $balance = $item?->inventory?->balance; $type = $item?->type; $cost = $item?->cost; $conversion_rate = $pro_det?->inv?->conversion; @endphp @php $gv_inv_balance = 0; @endphp @if ($pro_det->uom == $pro_det?->prd?->sellinguom?->id) @if ($conversion_rate > 0) @php $gv_inv_balance = $pro_det?->quantity / $conversion_rate; @endphp @endif @elseif ($pro_det->uom == $pro_det?->prd?->puruom?->id) @php $gv_inv_balance = $pro_det?->quantity; @endphp @endif
1

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

@endsection @section('page_js') @endsection