@extends('fragments.fullTemplate') @php $id_usuario = session('id_usuario'); if (! session('id_usuario')) { header('location: /'); die(); } @endphp @section('contenido')
@if(session()->has('success'))
{{ session()->get('success') }}
@endif @if(session()->has('warning'))
{{ session()->get('warning') }}
@endif @if(session()->has('danger'))
{{ session()->get('danger') }}
@endif @if (count($errors) > 0)
¡Error! Revise los campos obligatorios

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

DATOS DE LA EMPRESA PARA INFORMES

Empresa: {{$datos_reporte->nombre_empresa_informe}}

Representante: {{$rep_legal}}

Domicilio: @if ($datos_reporte->calle_informe) {{$datos_reporte->calle_informe.", "}} @endif @if ($datos_reporte->numero_exterior_informe) {{$datos_reporte->numero_exterior_informe.", "}} @endif @if ($datos_reporte->numero_interior_informe) {{$datos_reporte->numero_interior_informe.", "}} @endif @if ($datos_reporte->colonia_informe) {{$datos_reporte->colonia_informe.", "}} @endif @if ($datos_reporte->codigo_postal_informe) {{$datos_reporte->codigo_postal_informe.", "}} @endif @if ($datos_reporte->delegacion_informe) {{$datos_reporte->delegacion_informe}} @endif

DATOS PARA FACTURAR

Empresa: {{$datos_reporte->nombre_empresa_factura}}

RFC: {{$datos_reporte->rfc_factura}}

Domicilio: @if ($datos_reporte->calle_factura) {{$datos_reporte->calle_factura.", "}} @endif @if ($datos_reporte->numero_exterior_factura) {{$datos_reporte->numero_exterior_factura.", "}} @endif @if ($datos_reporte->numero_interior_factura) {{$datos_reporte->numero_interior_factura.", "}} @endif @if ($datos_reporte->colonia_factura) {{$datos_reporte->colonia_factura.", "}} @endif @if ($datos_reporte->codigo_postal_factura) {{$datos_reporte->codigo_postal_factura.", "}} @endif @if ($datos_reporte->delegacion_factura) {{$datos_reporte->delegacion_factura}} @endif

Contactos:

@foreach ($datos_contactos as $dato_contacto) @endforeach
Nombre E-mail Teléfono
{{$dato_contacto->nombre_contacto}} {{$dato_contacto->correo}} {{$dato_contacto->telefono}}
@php $total = 0; @endphp @foreach ($datos_conceptos as $concepto) @php $subtotal = 0; $precio = 0; $iva = 0; $precio_descuento = 0; if ($concepto->descuento_activo == 1) { $descuento = $concepto->descuento/100; $precio = $concepto->precio_unitario*$concepto->cantidad; $descuento = $precio*$descuento; $precio_descuento = $precio-$descuento; $iva = $concepto->iva - 1; $iva = $precio_descuento*$iva; $subtotal = $precio_descuento*$concepto->iva; }else{ $subtotal = $concepto->cantidad * $concepto->precio_unitario; $iva = $concepto->iva - 1; $iva = $subtotal*$iva; $subtotal = $subtotal*$concepto->iva; } $total += $subtotal; @endphp @endforeach
Descripción Servicio Producto Cantidad Precio unitario Descuento Precio Descuento IVA Subtotal
{{$concepto->descripcion}} {{$concepto->servicio}} {{$concepto->servicio_producto}} {{$concepto->cantidad}} ${{number_format($concepto->precio_unitario, 2, '.', ',')}} @if ($concepto->descuento_activo == 1) {{$concepto->descuento}}% @else N/A @endif @if ($concepto->descuento_activo == 1) ${{number_format($precio_descuento, 2, '.', ',')}} @else N/A @endif ${{number_format($iva, 2, '.', ',')}} ${{number_format($subtotal, 2, '.', ',')}}
TOTAL: ${{number_format($total, 2, '.', ',')}}

{{--@if ($datos_muestras_reporte->count() > 0)--}}
Formato EXCEL PDF EMAIL
PREFACTURA
{{csrf_field()}}
{{csrf_field()}}
CONTRATO
{{csrf_field()}}
{{csrf_field()}}
{{--@endif--}}
{{----}} Atrás
@include('Internacional_otros_servicios.EmailModals.send_mail') @endsection