@extends('layouts.master') @section('title') Edit Branch @endsection @section('content') @php $oldCountry = old('region', $branch->countrys->id ?? null); $oldState = old('state', $branch->states->id ?? null); $oldCity = old('city', $branch->citys->id ?? null); $countries = \App\Models\Country::all(); $states = \App\Models\State::where('country_id', $oldCountry)->get(); $cities = \App\Models\City::where('state_id', $oldState)->get(); @endphp
@csrf @method('PUT')

Edit Branch - {{ $branch->branch_name }}

{{-- Tenant Selection --}}
@error('tenant_id')
{{ $message }}
@enderror
{{-- Branch Name --}}
@error('branch_name')
{{ $message }}
@enderror
{{-- Branch Address --}}
@error('branch_address')
{{ $message }}
@enderror
{{-- Contact Information --}}
@error('branch_contact_name')
{{ $message }}
@enderror
@error('branch_contact_phone')
{{ $message }}
@enderror
@error('branch_contact_email')
{{ $message }}
@enderror
{{-- Location Details --}}
@error('location')
{{ $message }}
@enderror
{{-- Country --}}
@error('region')
{{ $message }}
@enderror
{{-- State --}}
@error('state')
{{ $message }}
@enderror
{{-- City --}}
@error('city')
{{ $message }}
@enderror
{{-- Features --}}
reservation_enabled) ? 'checked' : '' }}>
advanced_seating_enabled) ? 'checked' : '' }}>
{{-- Status --}}
@endsection