@extends('layouts.app') @section('title') All Open Files @stop @section('breadcrumb') @stop @section('css') @stop @section('content')
Open Files
@permission('issue-openfile')  Sell A Package @endpermission {{-- @permission('issue-openfile')  Issue New Open File @endpermission --}}
@can('isSuperAdmin')
@endcan

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->inventory_status == \App\DealerPackage::inventory_not_created) Not Created @elseif($dopf->inventory_status == \App\DealerPackage::inventory_created) Created @endif       {{-- --}} {{--
{!! method_field('delete') !!} {!! csrf_field() !!}
--}}
@stop @section('js') @stop