@extends('layouts.admin.base-dashboard') @section('title', 'Edit Branch') @section('content')
@csrf @method('PATCH')
Edit Branch
{{-- Store --}}
@error('store_id')
{{ $message }}
@enderror
{{-- Name --}}
@error('name')
{{ $message }}
@enderror
{{-- Location --}}
@error('location')
{{ $message }}
@enderror
{{-- Info Preview (Optional) --}}
Current Store:
@php $currentStore = $stores->where('id', $branch->store_id)->first(); @endphp {{ $currentStore ? $currentStore->name : '-' }}

Branch:
{{ $branch->name }}

Location:
{{ $branch->location ?: '-' }}
@endsection @push('script') @endpush