@extends('admin.layouts.app') @php $mode = "Add"; $action = route('add.invoice'); if(!empty($id)){ $mode = "Edit"; $action = route('ai.edit',$id); } $invoice_currency = [ '1' => 'USD', '2' => 'EUR' ] @endphp @section('content')
Add Invoice
Dashboard
@if(check_route_access('accounting.list'))
Accounting
@endif
{{ $mode }} Invoice
{{ $mode }} Invoice
@if(check_route_access('accounting.list'))
Accounting
@endif
@include('admin.includes.status')
@if($mode == "Edit")
Invoice ID
{{$id}}
@endif
Name of User
{{$user_info->first_name}} {{$user_info->last_name}}
Invoice Nr. #
*
invoice_number : old('invoice_number') }}">
@if ($errors->has('invoice_number')){{ $errors->first('invoice_number') }}@endif
Invoice Sent
*
invoice_created_date : old('invoice_created_date') }}" >
@if ($errors->has('invoice_created_date')){{ $errors->first('invoice_created_date') }}@endif
Due Date
*
invoice_due_date : old('invoice_due_date') }}" >
@if ($errors->has('invoice_due_date')){{ $errors->first('invoice_due_date') }}@endif
Fee Type
*
Select
@foreach($invoice_fee_type as $type)
group_id == 1) label="Main" @elseif($type->group_id == 2)label="Other" @endif>
field_id == $invoice->invoice_type || $type->field_id == old('invoice_type')) selected="selected" @endif >{{ $type->field_name }}
@endforeach
@if ($errors->has('invoice_type')){{ $errors->first('invoice_type') }}@endif
Currency
*
@if (!empty($invoice_currency)) @foreach($invoice_currency as $key => $value)
invoice_currency || $key == old('invoice_currency')) selected="selected" @endif >{{$value}}
@endforeach @endif
@if ($errors->has('invoice_currency')){{ $errors->first('invoice_currency') }}@endif
Payment Plan
*
payment_type || 1 == old('payment_type')) selected="selected" @endif >No
payment_type || 2 == old('payment_type')) selected="selected" @endif>Yes
@if ($errors->has('payment_type')){{ $errors->first('payment_type') }}@endif
Total Amount $
*
invoice_total_amount : old('invoice_total_amount') }}" >
@if ($errors->has('invoice_total_amount')){{ $errors->first('invoice_total_amount') }}@endif
Plan Initial Amount $
payment_plan_initial_amount : old('payment_plan_initial_amount') }}" >
Plan Bi-Weekly Amount $
payment_plan_biweekly_amount : old('payment_plan_biweekly_amount') }}" >
Plan Number of Bi-Weekly Payments
payment_plan_total_payments : old('payment_plan_total_payments') }}" >
Plan Agreement Collected
payment_plan_agreement_collected || 1 == old('payment_plan_agreement_collected')) selected="selected" @endif>No
payment_plan_agreement_collected || 2 == old('payment_plan_agreement_collected')) selected="selected" @endif>Yes
Plan Agreement Date Collected
payment_plan_agreement_date_collected : old('payment_plan_agreement_date_collected') }}" >
Plan Initiated (After Arrival)
payment_plan_initiated || 1 == old('payment_plan_initiated')) selected="selected" @endif>No
payment_plan_initiated || 2 == old('payment_plan_initiated')) selected="selected" @endif>Yes
Comment / Instructions / Terms
{{ ($mode == "Edit") ? $invoice->comment : old('comment') }}
{{$mode}} Invoice
@endsection @section('scripts') @endsection