@extends('layouts.app') @section('title') All Package Payments @stop @section('breadcrumb') @stop @section('css') @stop @section('content')
Package Payments

  Package Information

@if($dealer_package->package->rebate_type == 'cash') @elseif($dealer_package->package->rebate_type == 'openfile') @endif
Dealer Name: {{ $dealer_package->dealer->name }}
Dealer Code: {{ $dealer_package->dealer->code }}
Package Name: {{ $dealer_package->package->name }}
Package Total Amount: {{ $dealer_package->package->total_price }} pkr
Package Issue Date: {{ $dealer_package->issue_date }}
Paid Amount: {{ $paid_amount }} pkr
Remaining Amount: {{ $dealer_package->package->total_price - $paid_amount }} pkr
Rebate Type: {{ $dealer_package->package->rebate_type }}
Total Rebate: {{ $dealer_package->package->rebate_amount }} pkr Remaining Rebate Amount: {{ $dealer_package->package->remaining_rebate }} pkr
Payment Status: @if ($dealer_package->payment_status == \App\DealerPackage::pending) Pending @elseif($dealer_package->payment_status == \App\DealerPackage::completed) Completed @endif
Package Inventory: @if ($dealer_package->is_approved == \App\DealerPackage::inventory_not_created) Not Created @elseif($dealer_package->is_approved == \App\DealerPackage::inventory_created) Created @endif

All Payments

@foreach ($dealer_payment as $dp) @endforeach
Sr. No. Paid Amount Payment Status Payment Date Action
{{ $count++ }} {{ $dp->amount }} pkr @if ($dp->is_approved == 0) Pending @elseif($dp->is_approved == 1) Approved @endif {{ date('y-m-d', strtotime($dp->receipt_date)) }}   
@stop @section('js') @stop