@extends( 'layouts.app' ) @section('title') Vendor Detail @stop @section('breadcrumb') @stop @section('content')
user-img

{{$vendor->name}}

@if($vendor->vendor_type == \App\Vendor::Trader) Trader @else Non Trader @endif

{{$bill_count}}

Count

Transactions

{{number_format($paidAmount)}}

PKR

Paid Amount

{{number_format($billAmount - $paidAmount)}}

PKR

Balance

Basic Info


@if($vendor->status == true) @else @endif
Cnic {{$vendor->cnic}}
Rep Name {{$vendor->rep_name}}
Opening Balance {{$vendor->opening_balance}}
Phone Number {{$vendor->phone_number}}
Email {{$vendor->email}}
Address {{$vendor->address}}
StatusActive InActive
Updated at {{$vendor->updated_at}}
Created at {{$vendor->created_at}}

Account Ledger


@foreach($records as $r) @if($r['bill']) @else @endif @endforeach
Bill Date Category Memo Debit Credit Balance
Opening Balance {{number_format($balance)}}
{{$r['bill_id']}} {{date('d-m-Y',strtotime($r['date']))}} {{$r['category']}} {{$r['memo']}} {{number_format($r['amount'])}}{{number_format($r['amount'])}} @if($balance >= 0) {{number_format($balance)}} @else ({{number_format(abs($balance))}}) @endif
Total {{number_format($debit)}} {{number_format(abs($credit))}} {{number_format($balance)}}
Closing Balance @if($balance >= 0) {{number_format($balance)}} @else ({{number_format(abs($balance))}}) @endif
@stop