@extends('admin.layouts.master') @section('title') {{ $memo->category }} @endsection @section('content')

PREVIEW {{ $memo->status != null ? ' - ' . $memo->status : '' }}

@if ($memo->is_draft == 0) @include('admin.pages.memo.navtrac.form.steps') @if ($memo->submitted_at == null) @include('admin.pages.memo.navtrac.form.stages') @endif @endif
FROM :
{{ $memo->from }}
TO :
{{ $memo->action_addressee }}
@if (!empty($memo->ref))
REFERENCE :
{{ $memo->ref }}
@endif
INTERCOM :
{{ $memo->intercom ?? '000' }}
MOBILE :
{{ $memo->origino_phone }}
DATE :
{{ now()->format(config('gaf.gaf_date')) }}
CATEGORY :
{{ $memo->category }}

SUBJECT
{{ $memo->subject }}
 
@if ($memo->category == 'NON-REQUISITION' && $memo->sub_heading != null)
SUBHEADING
@foreach ($memo->sub_heading as $heading) {{ $heading['subject'] }}
@endforeach
 
@endif
REQUEST DETAILS
{!! $memo->request !!}
@if (!empty($memo->items) && count($memo->items) > 0)
ITEMS
@if ($memo->conduct_market_survey == 'NO') @endif @if ($memo->conduct_market_survey == 'NO') @endif @php $sum = 0; @endphp @foreach ($memo->items as $key => $item) @if ($memo->conduct_market_survey == 'NO') @endif @if ($memo->conduct_market_survey == 'NO') @endif @php $sum += $item['quantity'] * $item['price']; @endphp @endforeach @if ($memo->conduct_market_survey == 'NO') @endif
Srl. ItemUnit Price ({{ $memo->currency }}) QuantityTotal ({{ $memo->currency }})  
{{ $key + 1 }}. {{ $item['description'] }}{!! money($item['price'], $memo->currency) !!} {{ $item['quantity'] }} {!! money($item['quantity'] * $item['price'], $memo->currency) !!}
  {!! money($sum, $memo->currency) !!}  
@endif @if ($memo->conduct_market_survey == 'NO')
TOTAL AMOUNT
{!! $memo->currency !!}. {!! $memo->total_amount !!}
AMOUNT IN WORDS
{!! $memo->amount_in_words !!}
@endif @if ($memo->supplier_id != null)

SUPPLIER
{{ $memo->supplier->name }}
CONTACT
{{ $memo->supplier->contact }}
@endif @if ($memo->hasMedia('invoice'))

@if ($memo->category == 'NON-REQUISITION')
DOCUMENTS
@else
INVOICE(S)
@endif
@endif
@if ($memo->is_draft == 0)
RANK/APPT
{{ $memo->origino_rank }}/{{ $memo->origino_appt }}
@endif
NAME
{{ $memo->origino_name }}
@if ($memo->is_draft == 0)
SIGNATURE
@endif
@if ($memo->payment_status == 'PAID' || ($memo->category == 'NON-REQUISITION' && $memo->status == 'APPROVED')) @if (can('Download-Memo'))
@endif @endif {{-- --}}
@endsection