@php $branch = $branch ?? null; @endphp

<label class="block">
    <span class="text-sm font-semibold text-ink-700">Nombre *</span>
    <input name="name" value="{{ old('name', $branch?->name) }}" required class="input mt-1.5">
</label>
<label class="block">
    <span class="text-sm font-semibold text-ink-700">Teléfono</span>
    <input name="phone" value="{{ old('phone', $branch?->phone) }}" class="input mt-1.5">
</label>
<label class="block">
    <span class="text-sm font-semibold text-ink-700">WhatsApp</span>
    <input name="whatsapp" value="{{ old('whatsapp', $branch?->whatsapp) }}" class="input mt-1.5">
</label>
<label class="block">
    <span class="text-sm font-semibold text-ink-700">Email</span>
    <input name="email" type="email" value="{{ old('email', $branch?->email) }}" class="input mt-1.5">
</label>
<label class="block md:col-span-2">
    <span class="text-sm font-semibold text-ink-700">Dirección</span>
    <input name="address" value="{{ old('address', $branch?->address) }}" class="input mt-1.5">
</label>
<label class="block">
    <span class="text-sm font-semibold text-ink-700">Ciudad</span>
    <input name="city" value="{{ old('city', $branch?->city) }}" class="input mt-1.5">
</label>
<label class="block">
    <span class="text-sm font-semibold text-ink-700">Departamento</span>
    <input name="state" value="{{ old('state', $branch?->state) }}" class="input mt-1.5">
</label>
<label class="block">
    <span class="text-sm font-semibold text-ink-700">País</span>
    <input name="country" value="{{ old('country', $branch?->country ?? 'Colombia') }}" class="input mt-1.5">
</label>
<label class="block">
    <span class="text-sm font-semibold text-ink-700">Zona horaria</span>
    <input name="timezone" value="{{ old('timezone', $branch?->timezone ?? config('app.timezone')) }}" class="input mt-1.5">
</label>
<label class="inline-flex items-center gap-2 text-sm text-ink-700">
    <input type="checkbox" name="is_active" value="1" @checked(old('is_active', $branch?->is_active ?? true)) class="rounded border-ink-300 text-brand-600 focus:ring-brand-500">
    Activa
</label>
