@extends('layouts.logeado') @section('style') @endsection @if (isset($filtro)) @section('sub_title', 'Servicios Finalizados. Filtro: ' . $filtro) @else @section('sub_title', 'Servicios Finalizados') @endif @section('sub_content')
@isset($filtra) @endisset
@if ($usuario->roles_id == 1 || $usuario->modulos[0]->pivot->editar == 1) Nuevo servicio @endif

Exportar:

@if($errors->first('sql') != null)
{{$errors->first('sql')}}
@endif
@forelse($servicios as $servicio) @if ($servicio->vale != null) @else @endif @empty @endforelse
ID Fecha Cliente Unidades/Valor Dir. Origen Despacho Modo pago Asignación Conductor Vehiculo Fuente Estado
@if (!empty($c1)) @else @endif @if (!empty($c2)) @else @endif @if (!empty($c3)) @else @endif @if (!empty($c5)) @else @endif @if (!empty($c6)) @if ($c6 == "inmediato") @else @endif @else @endif @if (!empty($c7)) @else @endif @if (!empty($c8)) @else @endif @if (!empty($c9)) @else @endif @if (!empty($c10)) @else @endif
{{ $servicio->id }} {{ $servicio->fecha }} {{ $servicio->vale_servicio->vale->valera->cuentae->agencia->NOMBRE }} {{ $servicio->cliente->nombres}} @if ($servicio->valor != null) {{ $servicio->unidades}} - ${{number_format($servicio->valor)}} @endif {{ $servicio->direccion }} @if ($servicio->fechaprogramada == null) Inmediato @else Programado @endif {{ $servicio->pago }} {{ $servicio->asignacion}} @if ($servicio->cuentac == Null) Sin asignar @else {{ $servicio->cuentac->conductor->NOMBRE}} @endif @if ($servicio->placa == null) Sin asignar @else {{$servicio->placa}} @endif @if ($servicio->users_id != null) @if ($servicio->users_id == 112) IVR @else CRM @endif @else App Usuario @endif {{$servicio->estado}} Detalles @if ($usuario->roles_id == 1 || $usuario->modulos[0]->pivot->editar == 1) Novedades @if ($servicio->estado == "Cancelado") @if ($usuario->roles_id == 1) @else @php $fecha = Carbon\Carbon::now(); @endphp @if ($servicio->cancelacion != null) @if ($fecha->diffInMinutes($servicio->cancelacion->fecha) < 21334) @endif @endif @endif @endif @if ($servicio->clientes_id == 21334 && $servicio->estado == "Finalizado" && $servicio->ruta != null) @endif @if ($servicio->clientes_id == 21334 && $servicio->estado <> "Finalizado" && $servicio->ruta != null) @endif @if ($servicio->estado == "No vehiculo" || $servicio->estado == "Cancelado" || $servicio->estado == "Cancelado devuelto") Duplicar @endif @endif
No hay datos
@if(method_exists($servicios,'links')) {{ $servicios->links() }} @endif
@endsection @section('modal') @endsection @section('script') @endsection