@extends('app') @section('breadcrumbs') {!!Breadcrumbs::render('home.reports')!!} @endsection @section('content')
{!!$reports->appends(request()->all())->render()!!}
{!!Form::open(['method' => 'get'])!!} {!!Form::hidden('excel','download')!!} {!!Form::close()!!}
@foreach($reports as $report) @endforeach
Gerencia Usuario Cliente Fecha Acción Descripción
@if($report->kind == App\ReportRecord::MANAGEMENT_ASSIGN) {{ ( $m = App\Management::find($report->end_value) ) ? $m->name : 'GERENCIA DADA DE BAJA' }} @else @if($m = $report->client->management) {{ $m->name }} @elseif($m = $report->user->management) {{ $m->name }} @endif @endif {{$report->user->full_name}} {{$report->client->cuenta}} {{$report->created_at->format('d/m/Y H:i')}} {{-- @if($report->kind == App\ReportRecord::MANAGEMENT_ASSIGN) Asignación de gerencia @elseif($report->kind == App\ReportRecord::USER_ASSIGN) Asignación de ejecutivo @elseif($report->kind == App\ReportRecord::MANAGEMENT_UNASSIGN) Gerencia desasignada @elseif($report->kind == App\ReportRecord::USER_UNASSIGN) Ejecutivo desasignado @elseif($report->kind == App\ReportRecord::CREATED_EVENT) Cita agendada @elseif($report->kind == App\ReportRecord::RESCHEDULED_EVENT) Cita reagendada @elseif($report->kind == App\ReportRecord::CANCELLED_EVENT) Cita cancelada @elseif($report->kind == App\ReportRecord::RELOCATED_EVENT) Ubicación actualizada @elseif($report->kind == App\ReportRecord::LOCATION_SELECTED_EVENT) Ubicación para cita seleccionada @elseif($report->kind == App\ReportRecord::DONE_EVENT) Cita concretada @elseif($report->kind == App\ReportRecord::ADDON_SERVICE) Servicio adicional requerido @elseif($report->kind == App\ReportRecord::REGULAR_SERVICE) Servicio requerido @elseif($report->kind == App\ReportRecord::STATUS_CHANGED) El cliente fue marcado con estatus @lang('clients.status.'.$report->end_value) @else Columna {{$report->column}} modificada @endif --}} {{$report->readable_status}} {{-- @if($report->kind == App\ReportRecord::MANAGEMENT_ASSIGN) @if($report->old_value != null) Gerencia previa: {{ ($m = App\Management::find($report->old_value)) ? $m->name : "GERENCIA DADA DE BAJA"}} @else Gerencia asignada : {{ ($m = App\Management::find($report->end_value)) ? $m->name : "GERENCIA DADA DE BAJA"}} @endif @elseif($report->kind == App\ReportRecord::USER_ASSIGN) {{$report->client->user->full_name}} @elseif($report->kind == App\ReportRecord::MANAGEMENT_UNASSIGN) Gerencia previa : {{ ($m = App\Management::find($report->start_value)) ? $m->name : "GERENCIA DADA DE BAJA"}} @elseif($report->kind == App\ReportRecord::USER_UNASSIGN) Ejecutivo anterior : {{ ($u = App\User::find($report->start_value)) ? $u->full_name : "EJECUTIVO DADA DE BAJA"}} @elseif($report->kind == App\ReportRecord::CREATED_EVENT) Cita agendada para el día {{$report->event->datetime->format('d/m/Y H:i')}} @elseif($report->kind == App\ReportRecord::RESCHEDULED_EVENT) Cita agendada para el día {{$report->event->datetime->format('d/m/Y H:i')}} @elseif($report->kind == App\ReportRecord::CANCELLED_EVENT) Cita cancelada @elseif($report->kind == App\ReportRecord::DONE_EVENT) Cita concreatada @elseif($report->kind == App\ReportRecord::ADDON_SERVICE) {{$report->requiredService->description}}. @if($service = $report->requiredService) Documentación @if($service->status == 0) No entregada @elseif($service->status == 1) entregada @elseif($service->status == 2) Pendiente @endif @endif @elseif($report->kind == App\ReportRecord::REGULAR_SERVICE) @if($service = $report->requiredService) Servicio "@lang("clients.services.{$service->service}")" {{$report->end_value == 1 ? 'requerido' : 'pendiente'}}. @endif @endif--}} {{$report->action}}
@endsection @section('modals') @include('reports.modals.filters') @endsection @section('script') @parent {!! Html::script('js/reports/index.js') !!} {!! Html::script('js/select2.full.js')!!} @endsection @section('style') @parent {!!Html::style('css/select2.css')!!} {!!Html::style('css/select2-bootstrap.css')!!} @endsection