@extends('layouts.app') @section('title') Dealer Package Detail @stop @section('breadcrumb') @stop @section('css') @stop @section('content')

Dealer Package Detail

{{$dealer_package->package->name}} Package @if($dealer_package->payment_status == \App\DealerPackage::pending) Pending @elseif($dealer_package->payment_status == \App\DealerPackage::completed) Completed @endif

Issue Date {{$dealer_package->issue_date}}


{{number_format($dealer_package->package->total_price)}}

PKR

Package Amount

{{number_format($paid_amount)}}

PKR

Paid Amount

{{number_format(count($sold_inventory))}}

Files

Closed Files

{{-- Rebate Information --}}

Package Information


@if($dealer_package->package->rebate_type == 'cash') @else @endif
Rebate Type {{$dealer_package->package->rebate_type}}
Rebate Amount Rs: {{$dealer_package->package->rebate_amount}}
Paid Rebate Amount Rs: {{$package_paid_rebate}}
Remaining Rebate Amount Rs: {{$dealer_package->package->remaining_rebate}}
{{-- End Rebate Information --}} {{-- Dealer Package Open Files --}}

Packages Units


@foreach($dealer_package->openFileDealerInfo as $info) {{-- --}} @role('admin') @else @endrole @if($admin) @if($info->inventory->status == \App\Inventory::open) @elseif($info->inventory->status == \App\Inventory::package_open_file) @elseif($info->inventory->status == \App\Inventory::sold) @elseif($info->inventory->status == \App\Inventory::hold_client) @elseif($info->inventory->status == \App\Inventory::hold_company) @elseif($info->inventory->status == \App\Inventory::token_hold) @elseif($info->inventory->status == \App\Inventory::temp_hold) @else {{-- --}} @endif @else @if($info->inventory->status == \App\Inventory::open) @else @endif @endif @endforeach
Unit Number Size Type Status Expiry Date
{{$info->inventory->unit_number}} {{ $info->inventory->size->name }} {{ env('SIZE') }} {{$info->inventory->type->name}}{{$info->inventory->status}}OpenOpen/Dealer Package FileSoldClient HoldCompany HoldToken HoldTemporary HoldOpenSold{{$info->valid_until_date}}
{{-- End Dealer Package Open Files --}}
@stop @section('js') @Stop