@extends('layouts.app') @section('title') {{ config('settings.company_name') }} -> Dashboard @stop @section('top-bar') @include('includes.top-bar') @stop @section('left-sidebar') @include('includes.left-sidebar') @stop @php @endphp @section('content')

{{__('lang.leasing_dashboard')}}


{{-- @csrf --}}
@include('layouts.components.date_field', [ 'col' => 3, "name" => "from", "label" => __('lang.from'), "id" => "bs_datepicker_container", "value" => date('d/m/Y', strtotime($dash_params->from)) ]) @include('layouts.components.date_field', [ 'col' => 3, "name" => "to", "label" => __('lang.to'), "id" => "bs_datepicker_container", "value" => date('d/m/Y', strtotime($dash_params->to)) ])
@include("admin.dashboard.partial.icon_card",[ "imagepath" => "asset/dashboard_icons/leasae.png", "route"=> "leasing-dashboard-report-redirection", "parameters" => ['branch_id' => $dash_params->branch_id, 'from' => $dash_params->from , 'to' => $dash_params->to , 'redirect_type' => 'total_lease'], "target" => "_blank", "value" => $label_data->total_leases, "label" => 'Total Leases', "col"=> 6, ]) @include("admin.dashboard.partial.icon_card",[ "imagepath" => "asset/dashboard_icons/amount.png", "route"=> "leasing-dashboard-report-redirection", "parameters" => ['branch_id' => $dash_params->branch_id , 'from' => $dash_params->from , 'to' => $dash_params->to , 'redirect_type' => 'lease_amount'], "target" => "_blank", "label" => 'Lease Amount '.$transaction->systemSettingCurrency(), "value" => $transaction->addCommasFormatingNumber($label_data->lease_amount), "col"=> 6, ]) @include("admin.dashboard.partial.icon_card",[ "imagepath" => "asset/dashboard_icons/liability-3.png", "route"=> "leasing-dashboard-report-redirection", "parameters" => ['branch_id' => $dash_params->branch_id , 'from' => $dash_params->from , 'to' => $dash_params->to , 'redirect_type' => 'collected_amount'], "target" => "_blank", "label" => 'Collected Amount '.$transaction->systemSettingCurrency(), "value" => $transaction->addCommasFormatingNumber($label_data->collected_amount), "col"=> 6, ]) @include("admin.dashboard.partial.icon_card",[ "imagepath" => "asset/dashboard_icons/balance_amount.png", "route"=> "leasing-dashboard-report-redirection", "parameters" => ['branch_id' => $dash_params->branch_id , 'from' => $dash_params->from , 'to' => $dash_params->to , 'redirect_type' => 'balance_amount'], "target" => "_blank", "label" => 'Balance Amount '.$transaction->systemSettingCurrency(), "value" => $transaction->addCommasFormatingNumber($label_data->balance_amount), "col"=> 6, ])

{{__('lang.properties_unit')}}

{{__('lang.leases_per_month')}}

{{__('lang.last_10_receipts')}}

@foreach ($chart_data->last_receipts_data->last_receipts as $receipt_data) @php $bank = $receipt_data->transaction_dr->pluck('IncomeExpenseHead.name')->unique()->implode(', '); $account = $receipt_data->transaction_cr->pluck('IncomeExpenseHead.name')->unique()->implode(', '); @endphp @endforeach
{{__('lang.serial_no')}} {{__('lang.voucher_no')}} {{__('lang.bank')}} {{__('lang.account')}} {{__('lang.amount')}} {{ $transaction->systemSettingCurrency() }}
{{ $loop->iteration }} {{ $receipt_data->voucher_no}} {{ $bank ?? '-'}} {{ $account}} {{ $transaction->convert_money_format($receipt_data->amount)}}

{{__('lang.last_10_leases')}}

@foreach ($chart_data->last_leases_data->leases as $lease) @endforeach
{{__('lang.serial_no')}} {{__('lang.lease_no')}} {{__('lang.customer')}} {{__('lang.contract')}} {{__('lang.amount')}} {{ $transaction->systemSettingCurrency() }}
{{ $loop->iteration }} {{ $lease->lease_no}} {{ $lease->customer->name}} {{ $transaction->date_format($lease->contract_from) . ' - ' . ( $transaction->date_format($lease->contract_to)) }} {{ $transaction->convert_money_format($lease->amount)}}
@stop @push('include-css') @endpush @push('include-js') @endpush