All Open Files ({{count($dealer_openfile_package )}})

@foreach($dealer_openfile_package as $dopf) @endforeach
Sr. No. Project Dealer Name Dealer Code Package Name Paid Amount Payment Status Issue Date Package Inventory Action
{{ $count++ }} {{ $dopf->multiProject?$dopf->multiProject->name:'None' }} {{ $dopf->dealer->name }} {{ $dopf->dealer->code }} {{($dopf->package)? $dopf->package->name:'' }} @php $paid_amount= $dopf->dealerPackagePaymentReceipt->where('dealerpackage_id',$dopf->id)->where('is_approved',1)->sum('amount'); @endphp {{ $paid_amount}} PKR @if($dopf->payment_status == \App\DealerPackage::pending) Pending @elseif($dopf->payment_status == \App\DealerPackage::completed) Completed @endif {{ $dopf->issue_date }} @if($dopf->is_approved == \App\DealerPackage::inventory_not_created) Not Created @elseif($dopf->is_approved == \App\DealerPackage::inventory_created) Created @endif       {{-- --}} {{--
{!! method_field('delete') !!} {!! csrf_field() !!}
--}}