@extends('admin.layouts.main') @section('title') @if($edit) {{ @trans('finance.edit_credit_entry') }} @else {{ @trans('finance.create_credit_entry') }} @endif @endsection @section('content') @include("admin.common.sidebar") {{ @trans('finance.finance') }} {{ @trans('finance.petty_cash') }} @if($edit) {{ @trans('finance.edit_credit_entry') }} @else {{ @trans('finance.create_credit_entry') }} @endif @csrf @if($edit) @endif {{ @trans('finance.credit_type') }} * credit_type == 'revenue') checked @endif> Revenue credit_type == 'transfer') checked @endif> Transfer {{ @trans('finance.payment_mode') }} * payment_mode == 'digital') checked @endif> Digital payment_mode == 'card') checked @endif> Card payment_mode == 'cash') checked @endif> Cash {{ @trans('finance.petty_cash_no') }} * {{ @trans('finance.date') }} * date_range {{ @trans('finance.short_description') }} * @if($edit){{ $pcDetail->short_description }}@endif {{ @trans('finance.project') }} * Select @foreach ($projects as $project) id == $pcDetail->project_id) selected @endif> {{ $project->name }} @endforeach {{ @trans('finance.company') }}* {{ @trans('finance.select_company') }} @if($edit) @foreach($companyList as $company) company_id == $company->id) selected @endif >{{ $company->name }} @endforeach @endif {{ @trans('finance.contact') }}* {{ @trans('finance.select_contact') }} @if($edit) @foreach($pcContactDetail as $contact) contact_id == $contact->id) selected @endif >{{ $contact->first_name }} {{ $contact->last_name }} @endforeach @endif {{ @trans('finance.amount') }} * {{ @trans('finance.taxation_details') }} @if($edit) @foreach($countryTaxList as $key => $country) {{$country->tax_title}} (%) @php $temp_tax_value = ''; foreach($pcDetail->taxes as $tax) { if($tax->tax_title == $country->tax_title) { $temp_tax_value = $tax->tax_value; } } @endphp @endforeach @else @foreach($countryTaxList as $key => $country) {{$country->tax_title}} (%) @endforeach @endif {{ @trans('finance.upload_supporting_documentation') }} {{ @trans('finance.upload') }} @if($edit) {{ $pcDetail->payment_proof_orig_file_name }} @if($pcDetail->payment_proof_orig_file_name) get_app @endif @else @endif {{ @trans('finance.department_details') }} @if($edit) @if(count($pcDetail->creditSplits) > 0) @foreach($pcDetail->creditSplits as $split) @if($loop->index != 0) @endif {{ @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 Staff Member {{ @trans('finance.select') }} @if($edit) @foreach($staffMembersList as $user) id == $split->user_id) selected @endif>{{ $user->first_name }} {{ $user->last_name }} @endforeach @endif {{ @trans('finance.amount') }} {{ @trans('finance.sale_type') }} Select sale_type == 'b2b') selected @endif>B2B sale_type == 'b2c') selected @endif>B2C @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 Staff Member Select @foreach($staffMembersList as $user) {{ $user->first_name }} {{ $user->last_name }} @endforeach Amount Sale Type Select B2B B2C add @endif @else Department Select @foreach($departmentList as $department) {{ $department->name }} @foreach($department->subdepts as $subdept) {{ $subdept->name }} @endforeach @endforeach Staff Member Select @foreach($staffMembersList as $user) {{ $user->first_name }} {{ $user->last_name }} @endforeach Amount Sale Type Select B2B B2C add @endif @endsection @push('pageJs') @endpush