@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") {{ @trans('finance.finance') }} {{ @trans('finance.purchase_orders') }} @if($edit){{ @trans('finance.edit_purchase_order') }}@else{{ @trans('finance.add_purchase_order') }}@endif @csrf @if($edit) {{ @trans('finance.edit_purchase_order_details') }} @else {{ @trans('finance.add_purchase_order_details') }} @endif {{ @trans('finance.purchase_order_number') }} * {{ @trans('finance.payment_date') }} * date_range {{ @trans('finance.company') }} * {{ @trans('finance.select') }} @foreach($companyList as $company) company_id == $company->id)selected @endif @else @if($company->id == old('company_id')) selected @endif @endif >{{ $company->name }} @endforeach {{ @trans('finance.contact') }} * {{ @trans('finance.select_contact') }} @if($edit) @foreach($pvContactDetail as $contact) contact_id == $contact->id) selected @else @if($contact->id == old('contact_id')) selected @endif @endif >{{ $contact->first_name }} {{ $contact->last_name }} @endforeach @endif {{ @trans('finance.currency') }} * currency == "USD") checked @endif @endif @if(old('currency') == "USD") checked @endif> {{ @trans('finance.usd') }} currency == $franchiseCurrency) checked @endif @endif @if(old('currency') == "{{ $franchiseCurrency }}") checked @endif> {{ $franchiseCurrency }} @if($edit && $pvDetail->currency == 'USD') {{ @trans('finance.coversion_rate') }} * @else {{ @trans('finance.coversion_rate') }} * @endif {{ @trans('finance.short_description') }} * @if($edit){{ $pvDetail->description }}@endif @if($isExemptVat) exempt_vat) checked @endif> {{ @trans('finance.exempt_vat') }} @endif {{ @trans('finance.item_details') }} @if($edit) @if(count($pvDetail->items) > 0) @foreach($pvDetail->items as $item) Item {{ $item->description }} @if($loop->index == 0) {{ @trans('finance.add') }} @else close @endif Amount Project project_id) data-project-id="{{ $item->project_id }}" data-project-name="{{ $item->project->name }}" @endif> Select @endforeach @else Item {{ @trans('finance.add') }} Amount Project project_id) data-project-id="{{ $item->project_id }}" data-project-name="{{ $item->project->name }}" @endif> Select @endif @else Item {{ @trans('finance.add') }} Amount Project Select @endif {{ @trans('finance.taxation_details') }} @if($edit) @foreach($countryList as $key => $country) {{$country->tax_title}} (%) @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) {{$country->tax_title}} (%) @endforeach @endif {{ @trans('finance.upload_supporting_documentation') }} {{ @trans('finance.upload') }} @if($edit) {{ $pvDetail->payment_proof_orig_file_name }} @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) {{ @trans('finance.department') }} {{ @trans('finance.select') }} @foreach($departmentList as $department) department_id == $department->id && $split->type == 'dept') selected @endif>{{ $department->name }} @foreach($department->subdepts as $subdept) department_id == $subdept->id && $split->type == 'sub_dept') selected @endif> {{ $subdept->name }} @endforeach @endforeach {{ @trans('finance.account') }} {{ @trans('finance.select') }} account == 'cost_of_goods_sold') selected @endif>Cost of Goods Sold account == 'human_capital') selected @endif>Human Capital account == 'operational_expense') selected @endif>Operational Expense account == 'investment') selected @endif>Investment account == 'tax') selected @endif>Tax {{ @trans('finance.amount') }} @if($loop->index == 0) add @else close @endif @endforeach @else Department Select @foreach($departmentList as $department) {{ $department->name }} @foreach($department->subdepts as $subdept) {{ $subdept->name }} @endforeach @endforeach Account Select Cost of Goods Sold Human Capital Operational Expense Investment Tax Amount add @endif @else Department Select @foreach($departmentList as $department) {{ $department->name }} @foreach($department->subdepts as $subdept) {{ $subdept->name }} @endforeach @endforeach Account Select Cost of Goods Sold Human Capital Operational Expense Investment Tax Amount add @endif {{ @trans('finance.terms') }} @if($edit) @if($pvDetail->terms) {{ $pvDetail->terms }} @endif @endif @endsection @push('pageJs') @endpush @push('pageCss') @endpush