@extends('admin.layouts.app') @section('content')

Sucursales

@include('admin.message')
Limpiar
@if($branches->isNotEmpty()) @foreach($branches as $branch) @endforeach @else @endif
ID Sucursal Tipo Ciudad Teléfono WhatsApp Horario Principal Estado Acciones
{{ $branch->id }}
{{ $branch->name }} @if($branch->code) {{ $branch->code }} @endif
{{ $branch->address }}
@php $typeLabels = [ 'store' => ['Tienda', 'primary'], 'warehouse' => ['Depósito', 'warning'], 'office' => ['Oficina', 'info'], 'pickup_point' => ['Punto Retiro', 'success'] ]; $type = $typeLabels[$branch->type] ?? ['Otro', 'secondary']; @endphp {{ $type[0] }} {{ $branch->city }} @if($branch->state)
{{ $branch->state }} @endif
@if($branch->phone) {{ $branch->phone }} @else - @endif @if($branch->whatsapp) @else - @endif @if($branch->isOpenNow()) Abierto @else Cerrado @endif @if($branch->is_main) Principal @else - @endif
is_active ? 'checked' : '' }}>

No se encontraron sucursales

Crear Primera Sucursal
@if($branches->hasPages())
{{ $branches->withQueryString()->links() }}
@endif
@endsection @section('customJs') @endsection