@extends('layouts/contentLayoutMaster') @section('title', 'Collection Points') @section('vendor-style') {{-- vendor css files --}} @endsection @section('page-style') @endsection @section('content')

Edit Collection Point

@csrf @method('PUT')
{{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}}
@error('district_id') {{ $message }} @enderror
@error('tehsil_id') {{ $message }} @enderror
@include('content._partials._sections.edit_bank', [ 'bank_detail' => $collectionPoint, ])
{{--

Chiller Details

--}}
Add
@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) @endif @endforeach @else @endif
No. Name Installation Date Status Action
{{ $i }} {{ $inventory ? $inventory->name : '' }} {{ $data['installation_date'] }}
No data found
{{--

Agreement Details

--}}
Add
@isset($collectionPoint->agreements) @forelse($collectionPoint->agreements as $key=>$agreement) @empty @endforelse @endisset
No. Ref. # Rent From To w.e.f Status
{{ ++$key }} {{ @$agreement['refrence_no'] }} {{ @$agreement['rent'] }} {{ @$agreement['from'] }} {{ @$agreement['to'] }} {{ @$agreement['wef'] }}
No data found
Add
@isset($collectionPoint->owners) @forelse($collectionPoint->owners as $key=>$data) @empty @endforelse @endisset
No. Name Father 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' }}
No data found
@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) @endif @endforeach @else @endif
No. Name Installation Date Status Action
{{ $i }} {{ $inventory ? $inventory->name : '' }} {{ $data['installation_date'] }}
No data found
Cancel
@endsection @section('vendor-script') @endsection @section('page-script') {{-- --}} @endsection