@extends('layouts.app') @section('title', 'Detalhes do Estabelecimento - ' . $estabelecimento->code) @section('content')
| Código | {{ $estabelecimento->code }} |
|---|---|
| Comerciante | {{ $estabelecimento->merchant->full_name ?? '-' }} |
| Mercado | {{ $estabelecimento->market->name ?? '-' }} |
| Localização | {{ $estabelecimento->market->location ?? '-' }} |
| Seção / Setor | {{ $estabelecimento->section ?? '-' }} |
| Tamanho | {{ $estabelecimento->size ? number_format($estabelecimento->size, 2, ',', '.') . ' m²' : '-' }} |
| Bancada | {{ $estabelecimento->stall->code ?? '-' }} |
| Status Atual | @php $statusClasses = [ 'active' => 'badge-success', 'inactive' => 'badge-danger', 'suspended' => 'badge-warning', 'pending' => 'badge-info', ]; $statusTexts = [ 'active' => 'Ativo', 'inactive' => 'Inativo', 'suspended' => 'Suspenso', 'pending' => 'Pendente', ]; $statusIcons = [ 'active' => 'fa-check-circle', 'inactive' => 'fa-times-circle', 'suspended' => 'fa-ban', 'pending' => 'fa-clock', ]; @endphp {{ $statusTexts[$estabelecimento->status] ?? ucfirst($estabelecimento->status) }} |
|---|---|
| Cadastrado em | {{ $estabelecimento->created_at ? $estabelecimento->created_at->format('d/m/Y H:i') : '-' }} |
| Última atualização | {{ $estabelecimento->updated_at ? $estabelecimento->updated_at->format('d/m/Y H:i') : '-' }} |
| Telefone | {{ $estabelecimento->phone ?? '-' }} |
|---|---|
| {{ $estabelecimento->email ?? '-' }} |
| Horário | @if($estabelecimento->opening_time && $estabelecimento->closing_time) {{ date('H:i', strtotime($estabelecimento->opening_time)) }} - {{ date('H:i', strtotime($estabelecimento->closing_time)) }} @else Horário não definido @endif |
|---|---|
| Dias de Funcionamento |
@if($estabelecimento->days_operation)
@php
$daysLabels = [
'segunda' => 'Segunda',
'terca' => 'Terça',
'quarta' => 'Quarta',
'quinta' => 'Quinta',
'sexta' => 'Sexta',
'sabado' => 'Sábado',
'domingo' => 'Domingo'
];
@endphp
@foreach($estabelecimento->days_operation as $day)
{{ $daysLabels[$day] ?? $day }}
@endforeach
@else
Não definido
@endif
|
| Status de Funcionamento | @if($estabelecimento->isOpenNow()) Aberto agora @else Fechado @endif |
{{ $estabelecimento->description }}
{{ json_encode($estabelecimento->metadata, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
| Nome | Cargo | Tipo | Telefone | Status | Ações |
|---|---|---|---|---|---|
| {{ $employee->full_name }} | {{ $employee->position }} | @php $employeeTypeTexts = [ 'manager' => 'Gerente', 'supervisor' => 'Supervisor', 'seller' => 'Vendedor', 'cashier' => 'Caixa', 'assistant' => 'Auxiliar', 'other' => 'Outro', ]; @endphp {{ $employeeTypeTexts[$employee->employee_type] ?? $employee->employee_type }} | {{ $employee->phone ?? '-' }} | @php $empStatusClasses = [ 'active' => 'badge-success', 'inactive' => 'badge-danger', 'suspended' => 'badge-warning', 'terminated' => 'badge-danger', ]; $empStatusTexts = [ 'active' => 'Ativo', 'inactive' => 'Inativo', 'suspended' => 'Suspenso', 'terminated' => 'Desligado', ]; @endphp {{ $empStatusTexts[$employee->status] ?? ucfirst($employee->status) }} |
@if($employee->status !== 'terminated')
@endif
@if($employee->status === 'active')
@endif
@if($employee->status === 'terminated')
@endif
|
Adicione o primeiro funcionário ao estabelecimento.