@component('mail::message') # PRUEBA NOTIFICACION DE PREFACTURA {{-- # Prefactura emitida --}} @foreach ($prefacturas as $prefactura) @if ($loop->first) El Comercial {{$prefactura->comercial->PersFirstName}} {{$prefactura->comercial->PersLastName}} ha emitido {{$prefacturas->count()}} prefactura @endif @endforeach {{-- @component('mail::table') @foreach ($prefacturas as $prefactura) |*Servicio*|*Certificado*|*RM*|*FECHA*|*EMPRESA*|*CANTIDAD*|*PROCESO*|*SUBTOTAL*|*OrdenCompra*| |---|---|---|---|---|---|---|---|---| @foreach ($prefactura->prefacTratamiento as $tratamiento) @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 |{{$prefactura->FK_Servicio}}|@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}} @endforeach |{{$prefactura->FK_Servicio}}| | | |{{$prefactura->Fecha_Servicio}}|{{$prefactura->cliente->CliName}}| |Transporte|{{$prefactura->Costo_transporte}}| |{{$prefactura->FK_Servicio}}| | | |{{$prefactura->Fecha_Servicio}}|{{$prefactura->cliente->CliName}}| |Total|{{$prefactura->Total_prefactura}}| $prefactura])}}' class='btn btn-info btn-block' title="{{ __('adminlte::message.seemoredetails')}}"> @endforeach @endcomponent --}} @foreach ($prefacturas as $prefactura) @foreach ($prefactura->prefacTratamiento as $tratamiento) @if ($loop->odd) @else @endif @endforeach
Servicio Certificado RM FECHA EMPRESA CANTIDAD PROCESO SUBTOTAL OrdenCompra
{{$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}}
Transporte {{$prefactura->Costo_transporte}}
Total {{$prefactura->Total_prefactura}} Ver detalles
@endforeach Para Cualquier detalle adicional comunicarse con el asesor comercial Correspondiente,
{{ config('app.name') }} @endcomponent