@extends('layouts.app') @section('htmlheader_title') Prefacturas @endsection @section('contentheader_title') Prefacturas
@endsection @section('main-content')

Lista de Prefacturas

{{-- @foreach($prefacturas as $prefactura) @endforeach
# Cliente Servicio Recepción Comercial OrdenCompra Total Status Ver
{{$prefactura->ID_Prefactura}} {{$prefactura->cliente->CliName}} {{$prefactura->FK_Servicio}} {{$prefactura->Fecha_Servicio}} {{$prefactura->comercial->PersFirstName.' '.$prefactura->comercial->PersLastName}} {{$prefactura->orden_compra}} {{$prefactura->Total_prefactura}} {{$prefactura->status_prefactura}} $prefactura])}}' class='btn btn-info btn-block' title="{{ __('adminlte::message.seemoredetails')}}">
--}} @foreach ($prefacturas as $prefactura) @foreach ($prefactura->prefacTratamiento as $tratamiento) @endforeach @endforeach
Comercial Servicio Certificado RM FECHA EMPRESA CANTIDAD PROCESO SUBTOTAL OrdenCompra
{{$prefactura->comercial->PersFirstName}} {{$prefactura->comercial->PersLastName}} {{$prefactura->FK_Servicio}}
{{$prefactura->comercial->PersFirstName}} {{$prefactura->comercial->PersLastName}} {{$prefactura->FK_Servicio}} @php $certificadosdeTratamiento = []; @endphp @foreach ($tratamiento->prefacresiduo as $residuo) @if ($residuo->SolicitudResiduo->certdato->certificado->CertType == 0) @php array_push($certificadosdeTratamiento, $residuo->SolicitudResiduo->certdato->certificado->CertNumero); @endphp @else @php array_push($certificadosdeTratamiento, "M-".$residuo->SolicitudResiduo->certdato->certificado->CertManifNumero); @endphp @endif @endforeach @foreach (array_unique($certificadosdeTratamiento) as $certnumber) {{$certnumber}}
@endforeach
@foreach (json_decode($tratamiento->RMs) as $rm => $value) {{$value}}
@endforeach
{{$prefactura->Fecha_Servicio}} {{$prefactura->cliente->CliName}} {{$tratamiento->cantidad_tratamiento}} {{$tratamiento->tratamiento->TratName}} {{$tratamiento->Total_prefactratamiento}} {{$prefactura->orden_compra}}
{{$prefactura->comercial->PersFirstName}} {{$prefactura->comercial->PersLastName}} {{$prefactura->FK_Servicio}} {{$prefactura->Fecha_Servicio}} {{$prefactura->cliente->CliName}} Transporte {{$prefactura->Costo_transporte}}
{{$prefactura->comercial->PersFirstName}} {{$prefactura->comercial->PersLastName}} {{$prefactura->FK_Servicio}} {{$prefactura->Fecha_Servicio}} {{$prefactura->cliente->CliName}} Total {{$prefactura->Total_prefactura}} $prefactura])}}' class='btn btn-info btn-block' title="{{ __('adminlte::message.seemoredetails')}}">
@endsection