@extends('admin.layouts.main') @section('title') @if($edit) {{ @trans('finance.edit_purchase_order') }} @else {{ @trans('finance.add_purchase_order') }} @endif @endsection @section('content')
@include("admin.common.sidebar")
@csrf
@if($edit)

{{ @trans('finance.edit_purchase_order_details') }}

@else

{{ @trans('finance.add_purchase_order_details') }}

@endif
date_range
currency == "USD") checked @endif @endif @if(old('currency') == "USD") checked @endif>
currency == $franchiseCurrency) checked @endif @endif @if(old('currency') == "{{ $franchiseCurrency }}") checked @endif>
@if($edit && $pvDetail->currency == 'USD')
@else
@endif
@if($isExemptVat)
exempt_vat) checked @endif>
@endif

{{ @trans('finance.item_details') }}

@if($edit) @if(count($pvDetail->items) > 0) @foreach($pvDetail->items as $item)
@if($loop->index == 0) {{ @trans('finance.add') }} @else close @endif
@endforeach @else
@endif @else
@endif

{{ @trans('finance.taxation_details') }}

@if($edit) @foreach($countryList as $key => $country)
@php $temp_tax_value = ''; foreach($pvDetail->taxes as $tax) { if($tax->tax_title == $country->tax_title) { $temp_tax_value = $tax->tax_value; } } @endphp
@endforeach @else @foreach($countryList as $key => $country)
@endforeach @endif
@if($edit) @if($pvDetail->payment_proof_orig_file_name) get_app @endif @else @endif

{{ @trans('finance.department_details') }}

@if($edit) @if(count($pvDetail->splits) > 0) @foreach($pvDetail->splits as $split)
@if($loop->index == 0) add @else close @endif
@endforeach @else
add
@endif @else
add
@endif

{{ @trans('finance.terms') }}

@endsection @push('pageJs') @endpush @push('pageCss') @endpush