@extends('backend.invoice.master') @php($title= 'Invoice') @if($payment->model=='Purchase') @php($title='Credit Purchase Invoice') @else @php($title = $payment->sale->sale_type.' Sale Invoice') @endif @section('title') {{ $title }} @endsection @section('body')
| Sl | Date | Client | Address | Mobile | Invoice/Chalan | Amount(Tk) |
|---|---|---|---|---|---|---|
| {{ '' }} | {{ dateFormat($payment->created_at,'d/m/Y') }} | {{-- @if($client->type=='Supplier')--}} {{-- {{ isset($row)? $row->product->name : '' }}--}} {{-- @else--}} {{-- @if(isset($row))--}} {{-- @foreach($row->details as $detail)--}} {{-- {{ $detail->purchase->product->name }},--}} {{-- @endforeach--}} {{-- @endif--}} {{-- @endif--}} | {{-- {{ isset($row)? $row->total : '' }}--}} | {{ $payment->amount }} | @if($payment->media=='Cash') {{ $payment->media }} @else {{ $payment->bankPayment->bankAccount->bank->code }}-{{ $payment->bankPayment->bankAccount->ac_no }} @endif |