Cliente: {{ strtoupper($cliente[0]->nombre) }}
Direccion: {{ $cliente[0]->direccion }}
@php $documento = DB::table('tipo_documentos')->select('nombre')->where('id', $cliente[0]->id_tipo_documento)->get(); @endphp
{{ $documento[0]->nombre }}: {{ $cliente[0]->documento }}
Tel: {{ $cliente[0]->tel }} / {{ $cliente[0]->cel }}
@php $vendedor = DB::table('users')->select('name')->where('id', $data[0]->vendedor_id)->get(); @endphp
Vendedor: {{ strtoupper($vendedor[0]->name) }}
|
@php $impuesto = DB::table('tipo_impuestos')->select('nombre', 'secuencia')->where('id', $data[0]->id_tipo_impuesto)->get(); @endphp
{{ strtoupper($impuesto[0]->nombre) }}
NCF: 00000000{{ $impuesto[0]->secuencia }}{{str_pad($data[0]->ncf, 8, '00000000', STR_PAD_LEFT) }}
Fecha: {{ \Carbon\Carbon::parse($data[0]->created_at)->format('d-m-Y') }}
Factura #: {{ str_pad($data[0]->id, 10, 'FAC-0000', STR_PAD_LEFT) }}
Orden: {{ str_pad($data[0]->numero_orden, 10, 'ORD-0000', STR_PAD_LEFT) }}
|