@extends('layouts/contentLayoutMaster') @section('title', 'Edit Building') @section('vendor-style') @endsection @section('page-style') @endsection @section('content') Edit Building @if ($errorMessage = Session::get('errorMessage')) {{ $errorMessage }} @endif @csrf @method('PUT') Building Code * @error('code') {{ $message }} @enderror Parent * Select Parent parent == 'plant'?'selected':''}} >Plant parent == 'ao'?'selected':''}}>Area Office parent == 'mcc'?'selected':''}}>Collection Point Parent Name * Building Name * @error('name') {{ $message }} @enderror Select Type Select Type type == 'residence'?'selected':''}}>Residence type == 'warehouse'?'selected':''}}>Ware House type == 'store'?'selected':''}}>Store type == 'office'?'selected':''}}>Office type == 'maintainance'?'selected':''}}>Maintainance type == 'utility'?'selected':''}}>Utility @error('type') {{ $message }} @enderror Contact * @error('contact') {{ $message }} @enderror WhatsApp # @error('whatsapp') {{ $message }} @enderror Location Details Bank Details Electric Meter Details Agreement Owner Details Next Of Kin District District @foreach ($districts as $district) id == $building->district_id ? 'Selected' : '' }}> {{ $district->name }} @endforeach @error('district_id') {{ $message }} @enderror Tehsil Tehsil @foreach ($tehsils as $tehsil) _id == $building->tehsil_id ? 'Selected' : '' }}> {{ $tehsil->name }} @endforeach @error('tehsil_id') {{ $message }} @enderror Lattitude Longitude Location * @include('content._partials._sections.edit_bank', [ 'bank_detail' => $building, ]) @if($showSubmit) Add @endif No. Ref. # Rent From To w.e.f Status @isset($building->agreements) @forelse($building->agreements as $key=>$agreement) {{ ++$key }} {{ @$agreement['refrence_no'] }} {{ @$agreement['rent'] }} {{ @$agreement['from'] }} {{ @$agreement['to'] }} {{ @$agreement['wef'] }} @empty No data found @endforelse @endisset Meter Owner Name Number Of Phases Meter Number Ref Number Customer ID {{-- Initial Reading --}} @if($showSubmit) Add @endif No. Name Father Name Cnic Ntn Contact Date Status @isset($building->owners) @forelse($building->owners as $key=>$data) {{ ++$key }} {{ $data['name'] }} {{ $data['father_name'] }} {{ $data['cnic'] }} {{ $data['ntn'] }} {{ $data['contact'] }} {{ $data['with_effective_date'] ?? 'NULL' }} @empty No data found @endforelse @endisset Next of Kin - Name * @error('next_of_kin_name') {{ $message }} @enderror Father Name * @error('next_of_kin_father_name') {{ $message }} @enderror Relation * @error('relation') {{ $message }} @enderror Contact * @error('next_of_kin_contact') {{ $message }} @enderror @if($showSubmit) Submit Reset Cancel @endif