@extends('metronic.base')
@section('titulo')
Facturacion
@endsection
@section('content')
@include('sessions')
Facturar Sin Cotización
@component('components.table')
@slot('thead')
# | #Coti. | Orden | Fecha | Estado | Cliente | Operativo | Pendientes | Acciones | |
---|---|---|---|---|---|---|---|---|---|
{{ $loop->iteration }} | {{ $file->completa->inicial->codigo_cotizacion }} | {{ $file->file_code }} | {{ date('d/m/Y',strtotime($file->created_at))}} | {{ $file->file_status }} | {{ $file->completa->inicial->cliente->nombre_cliente }} | Vendedor: {{ $file->completa->inicial->creada_por }} Operativo: {{ $file->completa->operativoC->name }} |
@php
$info = $help::validarEstadoFacturacion($file->id);
@endphp
@if(floatval($info['resta'])> 0)
Deuda: {!! $info['deuda'] !!} Facturado: {!! $info['pagado'] !!} |
@else
{{ $help::actualizarOrdenVentaEstado($file) }}
Deuda: {!! $info['deuda'] !!} Facturado: {!! $info['pagado'] !!} FACTURADO |
@endif