@extends('layouts.template') @section('template')

PURCHASE DETAILS

@if(Session::has('success'))
{{Session::get('success')}} @php Session::forget('success'); @endphp
@endif
{{ method_field('PUT') }} {{ csrf_field() }}
Basic Info Edit
@if($due!=0 && 1==2)
Payable

@endif
Item Details Add new item
@php $row_total = count($purchaseDetail); $total_qty = 0; $total_amount = 0; @endphp @foreach($purchaseDetail as $key => $purchaseDetails) @php $total_qty += $purchaseDetails->quantity; $total_amount += ($purchaseDetails->quantity*$purchaseDetails->purchase_price); @endphp @endforeach
Sl Item Name Quantity Unit Price Total Action
{{ ++$key }} {{ $purchaseDetails->item_code }} | {{ $purchaseDetails->item_name }} | {{ $purchaseDetails->color_name }} | {{ $purchaseDetails->size_name }} {{ $purchaseDetails->quantity }} {{ number_format($purchaseDetails->purchase_price,2) }} {{ number_format( ($purchaseDetails->purchase_price * $purchaseDetails->quantity) + ($purchaseDetails->item_vat/100) * ($purchaseDetails->purchase_price * $purchaseDetails->quantity), 2)}} @if(Auth::user()->role == 'admin') purchase_details_id.'/edit') }}" class="btn btn-info btn-sm"> @if($row_total>1)
{{ method_field('DELETE') }} {{ csrf_field() }}
@endif @endif
TOTAL {{$total_qty}} {{$total_amount}}
Attached Document (Image)
@if(!empty($attachment)) Attachment @else

No attachment uploaded for this invoice

@endif
{{ method_field('PUT') }} {{ csrf_field() }}
@endsection