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

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

@else

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

@endif
date_range
@if(!$oldRecord)
@endif
currency == $franchiseCurrency) checked @endif @endif @if(old('currency') == $franchiseCurrency) checked @endif>
currency == "USD") checked @endif @endif @if(old('currency') == "USD") checked @endif>
currency == "TZS" && $pvDetail->currency_conversion_flag == 1 ) checked @endif @endif @if(old('currency') == "TZS_TO_EURO") checked @endif>
@if($edit && $pvDetail->currency == 'USD')
@elseif ($edit && $pvDetail->currency_conversion_flag == 1)
@else
@endif

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

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

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

@if($edit) {{-- @foreach($pvDetail->taxes as $tax) --}} @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)

@endif
@if($loop->index == 0) add @else close @endif
@endforeach @else
add
@endif @else
add
@endif
@endsection @push('pageJs') @endpush @push('pageCss') @endpush