@extends('layouts.master') @php function formato($valor) { return number_format($valor, 2, ".", ","); } function fecha($fecha) { $meses = array("ENERO", "FEBRERO", "MARZO", "ABRIL", "MAYO", "JUNIO", "JULIO", "AGOSTO", "SEPTIEMBRE", "OCTUBRE", "NOVIEMBRE", "DICIEMBRE"); $a = substr($fecha, 0, 4); $m = substr($fecha, 5, 2); $d = substr($fecha, 8); return $d . " " . $meses[$m - 1] . " " . $a; } @endphp @section('content')
| # | Datos | Productos | Fecha | Total | Ver Cotización | Enviar Cotización | Editar | Eliminar |
|---|---|---|---|---|---|---|---|---|
| {{ $num++ }} |
@if($coti->nombre != null)
{{ $coti->nombre }} @endif @if($coti->telefono != null) {{ $coti->telefono }} @endif @if($coti->correo != null) {{ $coti->correo }} @endif @if($coti->ciudad != null) {{ $coti->ciudad }} @endif @if($coti->estado != null) {{ $coti->estado }} @endif @if($coti->cp != null) {{ $coti->cp }} @endif @if($coti->nombre_comercial != null) {{ $coti->nombre_comercial }}({{ $coti->ciudad }} - {{ $coti->estado }}) {{ $coti->correo_electronico }} {{ $coti->lada }} {{ $coti->telefono }} @endif |
{{ fecha($coti->fecha) }} | ${{ formato($coti->total) }} | Ver Cotización | Enviar | Editar | Eliminar |