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

SALES RETURN DETAILS

@if(Session::has('success'))
{{Session::get('success')}} @php Session::forget('success'); @endphp
@endif
Basic Info
{{ method_field('PUT') }} {{ csrf_field() }}
Voucher Ref:{{ $singlePurchaseReturn->voucher_ref }}
Date:{{ $singlePurchaseReturn->date }}
Customer:{{ $singlePurchaseReturn->sup_name }}@if(!empty($singlePurchaseReturn->mobile_no)),{{ $singlePurchaseReturn->mobile_no }}@endif
Total:{{ number_format($singlePurchaseReturn->memo_total,2) }}
Paid:{{ number_format($singlePurchaseReturn->advanced_amount,2) }}
Discount:{{ number_format($singlePurchaseReturn->discount,2) }}
Due:{{ number_format($singlePurchaseReturn->memo_total-$singlePurchaseReturn->advanced_amount+$singlePurchaseReturn->discount,2) }}
Received By:@if(isset($received_by)){{ $received_by->name }}@endif
Reason: {{ $singlePurchaseReturn->note }}
{{-- @if($due!=0)
Payable

@endif --}}
Item Details
@foreach($purchaseReturnDetails as $key => $value) @endforeach
Sl Item Name Quantity Unit Price Total
{{ ++$key }} {{ $value->item_name }} {{ $value->quantity }} {{ number_format($value->rate,2) }} {{ number_format( ($value->rate * $value->quantity),2)}}
@endsection