@push('styles') @endpush @section('title') Crear Reporte @endsection @section('page-title') Crear Reporte @endsection
@can('crear reportes') @if(session()->has('message'))
{{ session()->get('message') }}
@endif

Crear Reporte

Nombre del Reporte
@if($vacio == true)
Añadir Gráfica

Haz click para añadir una gráfica

@else @if($pages != null) @foreach($pages as $page)
@if($page['tarjetasTablasHtml'] != null) @foreach($page['tarjetasTablasHtml'] as $tarjeta)
{{$tarjeta['titulo']}}
@foreach($tarjeta['data'] as $fila) @endforeach @foreach($tarjeta['data'] as $fila) @endforeach @php $faltaModelo = false; foreach($tarjeta['data'] as $fila) { if (!isset($fila['modelo'])) { $faltaModelo = true; break; } } @endphp @if($faltaModelo != true) @foreach($tarjeta['data'] as $fila) @endforeach @endif @foreach($tarjeta['data'] as $fila) @endforeach
Marca {{$fila['marca']}}
Sucursal {{$fila['sucursal']}}
Modelo {{$fila['modelo']}}
@if(isset($tarjeta['data'][0]['conteo']) && $tarjeta['data'][0]['conteo'] != null) Cantidad @endif @if(isset($tarjeta['data'][0]['precio_total']) && $tarjeta['data'][0]['precio_total'] != null) Precio Total @endif @if(isset($fila['conteo']) && $fila['conteo'] != null) {{$fila['conteo']}} @endif @if(isset($fila['precio_total']) && $fila['precio_total'] != null) ${{number_format($fila['precio_total'], 0, '.', ',') }} @endif
@endforeach @endif @if($page['tarjetasContadoresHtml'] != null) @foreach($page['tarjetasContadoresHtml'] as $tarjeta)
{{$tarjeta['titulo']}}

@if ($tarjeta['tipo'] != 'Pruebas de Manejo') ${{number_format($tarjeta['suma'], 2, '.', ',') }} MXN

@else {{$tarjeta['suma']}} Unidades @endif
@endforeach @endif @if($page['tarjetasEspaciosHtml'] != null) @foreach($page['tarjetasEspaciosHtml'] as $tarjeta)
@endforeach @endif @if($page['tarjetasTitulosHtml'] != null) @foreach($page['tarjetasTitulosHtml'] as $tarjeta)

{{$tarjeta['titulo']}}

{{$tarjeta['subtitulo']}}

@endforeach @endif @if ($page['tarjetasGraficasHtml'] != null) @foreach($page['tarjetasGraficasHtml'] as $tarjeta)
@endforeach @endif @if($pagllena == false && $paginaActual == $page['id'])
Añadir Gráfica

Haz click para añadir una gráfica

@endif
@if($pagllena == true && $paginaActual == $page['id'])
@endif @endforeach @endif @endif @if($modal == true) @endif @if($modalEliminar === true) @endif
@error('nombre') {{ $message }} @enderror
@endcan
@section('scripts') @endsection