@php $establishment = $document->user->establishment; $customer = $document->customer; $tittle = str_pad($document->id, 8, '0', STR_PAD_LEFT); @endphp {{-- {{ $tittle }} --}} {{-- --}} @if ($company->logo) @else @endif
logo}")) }};base64, {{ base64_encode(file_get_contents(public_path("storage/uploads/logos/{$company->logo}"))) }}" alt="{{ $company->name }}" class="company_logo" style="max-width: 150px;">
{{-- --}}

{{ $company_name }}

@if ($company_owner) De: {{ $company_owner }} @endif
{{ 'RUC ' . $company->number }}
{{ $establishment->address !== '-' ? $establishment->address : '' }} {{ $establishment->district_id !== '-' ? ', ' . $establishment->district->description : '' }} {{ $establishment->province_id !== '-' ? ', ' . $establishment->province->description : '' }} {{ $establishment->department_id !== '-' ? '- ' . $establishment->department->description : '' }}
@isset($establishment->trade_address)
{{ $establishment->trade_address !== '-' ? 'D. Comercial: ' . $establishment->trade_address : '' }}
@endisset
{{ $establishment->telephone !== '-' ? 'Central telefónica: ' . $establishment->telephone : '' }}
{{ $establishment->email !== '-' ? : ' . $establishment->email : '' }}
@isset($establishment->web_address)
{{ $establishment->web_address !== '-' ? 'Web: ' . $establishment->web_address : '' }}
@endisset @isset($establishment->aditional_information)
{{ $establishment->aditional_information !== '-' ? $establishment->aditional_information : '' }}
@endisset
{{ get_document_name('technical_service', 'SERVICIO TÉCNICO') }}

{{ $tittle }}

@if ($customer->address !== '') @endif
Cliente: {{ $customer->name }} Fecha de emisión: {{ $document->date_of_issue->format('Y-m-d') }}
{{ $customer->identity_document_type->description }}: {{ $customer->number }}
Dirección: {{ $customer->address }} {{ $customer->district_id !== '-' ? ', ' . $customer->district->description : '' }} {{ $customer->province_id !== '-' ? ', ' . $customer->province->description : '' }} {{ $customer->department_id !== '-' ? '- ' . $customer->department->description : '' }}
Celular: {{ $document->cellphone }}
N° Serie: {{ $document->serial_number }}
@if ($document->activities) @endif
Descripción:
{{ $document->description }}
Estado:
{{ $document->state }}
Motivo:
{{ $document->reason }}
Actividades realizadas:
{{ $document->activities }}
@foreach ($document->items as $row) @endforeach
CANT. DESCRIPCIÓN P.UNIT IMPORTE TOTAL
{{ $row->quantity }} {{ $row->item->description }} {{ number_format($row->unit_price, 2) }} {{ number_format($row->unit_price * $row->quantity, 2) }} {{ number_format($row->total, 2) }}
@php $prepayment = $document->prepayment; $payments = $document->payments->sum('payment'); $total_payment = $prepayment + $payments; @endphp
COSTO DEL SERVICIO: {{ number_format($document->cost + $document->total, 2) }}
PAGOS: {{ number_format($total_payment, 2) }}
SALDO A PAGAR: {{ number_format($document->total + $document->cost - $total_payment, 2) }}