@extends('layouts.master') @section('title') Edit Branch - {{ $branch->branch_name }} @endsection @section('content') @php $oldCountry = old('country', $branch->region); $oldState = old('state', $branch->state); $oldCity = old('city', $branch->city); $countries = \App\Models\Country::all(); $states = \App\Models\State::where('country_id', $oldCountry)->get(); $cities = \App\Models\City::where('state_id', $oldState)->get(); @endphp

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

{{ $branch->branch_code }}
Branch Information
Branch Code: {{ $branch->branch_code }}
Status: {{ ucfirst($branch->status) }}
Created Date: {{ $branch->created_at->format('M d, Y') }}
Reservations: {{ $branch->reservation_enabled ? 'Enabled' : 'Disabled' }}
Advanced Seating: {{ $branch->advanced_seating_enabled ? 'Enabled' : 'Disabled' }}
Last Updated: {{ $branch->updated_at->format('M d, Y H:i') }}
@csrf @method('PUT')
Basic Information
@error('branch_name')
{{ $message }}
@enderror
@error('tenant_id')
{{ $message }}
@enderror
Address Information
@error('branch_address')
{{ $message }}
@enderror
@error('country')
{{ $message }}
@enderror
@error('state')
{{ $message }}
@enderror
@error('city')
{{ $message }}
@enderror
@error('pincode')
{{ $message }}
@enderror
Contact Information
@error('branch_contact_name')
{{ $message }}
@enderror
@error('branch_contact_phone')
{{ $message }}
@enderror
@error('branch_contact_email')
{{ $message }}
@enderror
Location & Features
@error('location')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror
Features
reservation_enabled) ? 'checked' : '' }}>
advanced_seating_enabled) ? 'checked' : '' }}>
Back to List
@endsection @section('script') @endsection