@extends('layouts/contentLayoutMaster') @section('title', 'Collection Point Detail') @section('vendor-style') {{-- vendor css files --}} @endsection @section('page-style') @endsection @section('content')
@php use App\Models\Bank; use App\Models\District; use App\Models\Tehsil; $bank = Bank::find($collectionPoint->bank_id); $getDistrict=District::find($collectionPoint->district_id); $getTehsil=Tehsil::find($collectionPoint->tehsil_id); $segment1 = request()->segment(1); @endphp
{{--
avatar
John Smith

Full Stack Developer

Bay Area, San Francisco, CA

  • https://mdbootstrap.com

  • mdbootstrap

  • @mdbootstrap

  • mdbootstrap

  • mdbootstrap

--}}

Collection Point Details

Code

{{$collectionPoint->code}}

Name

{{$collectionPoint->name}}


category

{{$collectionPoint->collectionPointCategory->category_name}}

@if(!$collectionPoint->plant_id)

Area Office

{{$collectionPoint->area_office->name}}

@else

Plant

{{$collectionPoint->plant->name}}

@endif

District

{{$getDistrict->name ?? ''}}

Tehsil

{{$getTehsil->name ?? ''}}


FFl's Collection Point

{{ ($collectionPoint->is_mcc == 1) ? 'YES' : 'NO'}}

Chiller & Gen FFL Owned

{{($collectionPoint->is_chiller_ffl_owned==1) ? 'YES' : 'NO' }}


Latitude

{{$collectionPoint->latitude}}

Longitude

{{$collectionPoint->longitude}}


Location / Address

{{$collectionPoint->address}}

@if(!$collectionPoint->plant_id)

Bank Account Details

Account Title

{{$collectionPoint->bank_account_title}}

Bank

{{$bank->name ?? ''}}


Branch Code

{{$collectionPoint->bank_branch_code}}

IBAN

{{$collectionPoint->bank_account_no}}


Branch Address

{{$collectionPoint->bank_address}}

@endif @if(!$collectionPoint->plant_id)

Electric Meter Details

Owner Name

{{ $meter->meter_owner_name ?? '' }}

Phase Type

{{$meter->phase ?? ''}}


Meter Number

{{$meter->meter_no ?? ''}}

Ref Number

{{$meter->ref_no ?? ''}}


Customer ID

{{$meter->meter_customer_id ?? ''}}

Initial Reading

{{$meter->initial_reading ?? ''}}

@endif @if(!$collectionPoint->plant_id)

Agreement Details

No

Ref

Rent

From

To

W.E.F

Status

@isset($collectionPoint->agreements) @forelse($collectionPoint->agreements as $key=>$agreement)

{{ ++$key }}

{{ @$agreement['refrence_no'] }}

{{ @$agreement['rent'] }}

{{@$agreement['from'] }}

{{ @$agreement['to'] }}

{{ @$agreement['wef'] }}

{{ isset($agreement['status']) && $agreement['status'] == 1 ? 'ACTIVE' : 'IN-ACTIVE' }}


@empty No data found @endforelse @endisset
@endif

Chiller Details

No

Installation Date

Name

Status

@if ($collectionPoint->chillers && count($collectionPoint->chillers) > 0) @foreach ($collectionPoint->chillers as $key => $data) @php $inventory = isset($data['id']) ? App\Helpers\Helper::getInventoryById( $data['id'], ) : ''; $i = 0; @endphp @if ($inventory)

{{ ++$i }}

{{ $data['installation_date'] }}

{{ $inventory ? $inventory->name : '' }}

{{ isset($data['status']) && $data['status'] == 1 ? 'ACTIVE' : 'IN-ACTIVE' }}


@endif @endforeach @else @endif

Generator Details

NO

Name

Installation Date

Status

@if ($collectionPoint->generators && count($collectionPoint->generators) > 0) @foreach ($collectionPoint->generators as $key => $data) @php $inventory = isset($data['id']) ? App\Helpers\Helper::getInventoryById($data['id']) : ''; $i = 0; @endphp @if ($inventory)

{{ ++$i }}

{{ $inventory ? $inventory->name : '' }}

{{ $data['installation_date'] }}

{{ isset($data['status']) && $data['status'] == 1 ? 'ACTIVE' : 'IN-ACTIVE' }}


@endif @endforeach @else @endif
@if(!$collectionPoint->plant_id)

Owner Details

@isset($collectionPoint->owners) @forelse($collectionPoint->owners as $key=>$data) @empty @endforelse @endisset
No Name F Name CNIC NTN Contact WhatsApp Date Status
{{ ++$key }} {{ $data['name'] }} {{ $data['father_name'] }} {{ $data['cnic'] }} {{ $data['ntn'] }} {{ $data['contact'] }} {{ $data['owner_whatsapp'] ?? 'NA' }} {{ $data['with_effective_date'] ?? 'NULL' }} {{ isset($data['status']) && $data['status'] == 1 ? 'ACTIVE' : 'IN-ACTIVE' }}
No data found
@endif
@endsection @section('vendor-script') @endsection @section('page-script') {{-- --}} @endsection