@extends( 'layouts.app' ) @section('content')

Préstamos en Dólares

{{-- --}}
@if (request()->get('find')) @endif
{{ $prestamos->withQueryString()->links('vendor.pagination.custom') }}
@if (count($prestamos)>0) @foreach ($prestamos as $prestamo) @php if($prestamo->liquidado == 1){ $isGreen = true; }else{ $isGreen = false; } @endphp @php $utilidad = number_format(($prestamo->monto_mxn_liquida - $prestamo->monto_mxn_entrega),2); if($utilidad < 0){ $isGreen = false; }else{ $isGreen = true; } @endphp @if($utilidad != 0 && $prestamo->liquidado ==1) @else @endif @endforeach @else @if (request()->get('find')) @else @endif @endif
Fecha Entrega Monto Entregado(MXN) Tipo Cambio(Entrega) Monto Entregado(DLLS) ¿Liquidado? Fecha Liquidado Monto Liquidado(MXN) Tipo Cambio(Liquidado) Monto Liquidado(DLLS) Utilidad(MXN)
{{MySqlToDatePicker($prestamo->fecha_entrega)}} {{"$ ".number_format($prestamo->monto_mxn_entrega,2)}} {{"$ ".number_format($prestamo->tipo_cambio_entrega,2)}} {{"$ ".number_format($prestamo->monto_dlls_entrega,2)}} {{$prestamo->liquidado == 1 ? 'Sí' : 'No'}} {{$prestamo->fecha_liquidacion != null ? MySqlToDatePicker($prestamo->fecha_liquidacion) : '--/--/----'}} {{$prestamo->monto_mxn_liquida != null ? "$ ".number_format($prestamo->monto_mxn_liquida,2) : '------------'}} {{$prestamo->tipo_cambio_liquida != null ? "$ ".number_format($prestamo->tipo_cambio_liquida,2) : '------------'}} {{$prestamo->monto_dlls_liquida != null ? "$ ".number_format($prestamo->monto_dlls_liquida,2) : '------------'}}{{$prestamo->liquidado ==1 ? "$ ".$utilidad : '------------'}}------------ @if ($prestamo->liquidado == 1) @else @endif
No se encontraron préstamos para este registro.
Selecciona una empresa.
@endsection @section('js_user_page') @endsection