@extends('layouts.vertical', ['title' => 'Dashboard']) @section('content')
Polizas
Clientes
Gestiones
Reclamos
Estado | Póliza | Total | |
---|---|---|---|
@php $statusIcons = [ 1 => ['icon' => 'bi-hourglass', 'class' => 'bg-warning', 'label' => 'Espera'], // ⏳ Reloj de arena 2 => ['icon' => 'bi-check', 'class' => 'bg-success', 'label' => 'Activo'], // ✅ Check 3 => ['icon' => 'bi-x-lg', 'class' => 'bg-danger', 'label' => 'Desactivado'], // ❌ X ]; // Obtener el estado correspondiente o valor por defecto $status = $statusIcons[$policy->status] ?? ['icon' => 'bi-question-circle', 'class' => 'bg-secondary', 'label' => 'Desconocido']; @endphp | @if ($policy->status == 1) -- @else {{ $policy->currency ?? '' }} {{ number_format($policy->total, 2, '.', ',') }} @endif |
Fotografía | Nombre de Cliente / Empresa | Tipo |
---|---|---|
@if ($client->avatar)
![]() |
@if(getPermission(Auth::user()->permissions, 'clients_edit'))
{{ getClientName($client) }}
@else
{{ getClientName($client) }}
@endif
@if ($client->type == 2)
{{ $client->name }} {{ $client->name2 }} {{ $client->lastname }} {{ $client->lastname2 }} @endif |
@if($client->type == 1) Natural @elseif($client->type == 2) Jurídico @endif @if($client->prospect == 1) Prospecto @endif |
Gestión | Estado | Prioridad | Creado |
---|---|---|---|
@if(getPermission(Auth::user()->permissions, 'ticket_edit')) {{ $ticket->id }} @else {{ $ticket->id }} @endif | {{$ticket->ticket_status_name}} | {{$ticket->ticket_priority_name}} | {{$ticket->created_at->format('d/m/Y')}} |