@php $meses = array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"); $fecha = Carbon\Carbon::parse($start_date); $fecha_fin = Carbon\Carbon::parse($end_date); $mes = $meses[($fecha->format('n')) - 1]; $mes_fin = $meses[($fecha_fin->format('n')) - 1]; Carbon\Carbon::setLocale('es'); $fechahow=Carbon\Carbon::now(); $fechaFormateadaShow = $fechahow->isoFormat('D [de] MMMM YYYY'); @endphp

IBERO FARMACOS, SRL
RELACION DE PAGOS DE PROMOCION
{{$fechaFormateadaShow}} {{--
SEMANA DEL {{$fecha->format('d/m/Y')}} al {{$fecha_fin->format('d/m/Y')}} --}}

VENDEDOR: {{$vendedor_name->SalesEmployeeName ?? $vendedor_name->Nombre ?? ''}}
Fecha: {{Carbon\Carbon::now()->format('d/m/Y')}}
{{--
Fecha: {{$start_date}} - {{$end_date}}
--}}
{{-- --}} {{-- --}} @php $total=0; @endphp @foreach($gasto as $gastos) @php $datos_extras = Modules\Promocion\Entities\ClienteDataExtraSap::where('cliente_id',$gastos->CLIENTE)->first(); if (empty($datos_extras)) { $datos_extras = Modules\Promocion\Entities\ClienteDataExtra::where('cliente_id',$gastos->CLIENTE)->first(); } $banco=!empty($datos_extras->banco) && $datos_extras->banco!=null ? $datos_extras->banco->Codigo : ''; @endphp {{-- --}} @endforeach {{-- --}}
NUMERO
DE CUENTA
CODIGO BANCO
PERTENECE CUENTA
TIPO DE
CUENTA
BENEFICIARIO MONTO DESCRIPCION CORREO
ELECTRONICO
CREADO PORFECHA
@php $cliente_name = Modules\Promocion\Entities\ClienteSap::where('CardCode',$gastos->CLIENTE)->first(); @endphp {{$datos_extras->numero_cuenta ?? '-'}} {{$banco}} {{-- {{$gastos->RECIBO_NO}} --}} {{$datos_extras->tipo_cuenta ?? '-'}} {{$cliente_name->CardName ?? ''}} @php $total+=$gastos->MONTO_RECIBO; @endphp {{number_format($gastos->MONTO_RECIBO,2)}} {{$cliente_name->MailAddress ?? $cliente_name->E_MAIL ?? ''}} @php $usuario=App\Models\User::where('id',$gastos->CREATED_BY)->first(); @endphp {{$usuario->name ?? 'Sin Cliente'}} @php $created_at=\Carbon\Carbon::parse($gastos->fecha)->format('Y-m-d'); @endphp {{$created_at}}
Total: {{number_format($total,2)}}
@php // Crear una instancia de Carbon con una fecha especĂ­fica Carbon\Carbon::setLocale('es'); $fecha = Carbon\Carbon::now(); // Formatear la fecha en el formato "27 de mayo 2024" $fechaFormateada = $fecha->isoFormat('D [de] MMMM YYYY'); @endphp {{-- --}} {{-- --}} {{-- --}} {{-- --}} @php $total=0; @endphp @foreach($gasto as $gastos) @php $datos_extras = Modules\Promocion\Entities\ClienteDataExtraSap::where('cliente_id',$gastos->CLIENTE)->first(); if (empty($datos_extras)) { $datos_extras = Modules\Promocion\Entities\ClienteDataExtra::where('cliente_id',$gastos->CLIENTE)->first(); } $banco=!empty($datos_extras->banco) && $datos_extras->banco!=null ? $datos_extras->banco->Codigo : ''; @endphp {{-- --}} {{-- --}} {{-- --}} @endforeach

Total:

{{number_format($total,2)}}

REALIZADO POR:

___________________________________________________________________________

REVISADO POR:

___________________________________________________________________________

AUTORIZADO:

___________________________________________________________________________

RECIBIDO POR:

___________________________________________________________________________