@extends('companyuser::layouts.master') @section('title', __('sales::proforma_invoices.create_invoice')) @section('extra-styles') @if (app()->getLocale() == 'en') @else @endif @endsection @section('breadcrumb') @endsection @section('content')
@csrf
@include('companyuser::errors.operation-locked') @include('companyuser::errors.lists')
@error('code') @enderror
( @lang('optional') )
@error('description')

{{ $message }}

@enderror
@php $selectedCustomerId = old('customer') ?? request('customer_id') ?? ($proformaInvoice ? $proformaInvoice->customer_id : null); @endphp
@error('customer') @enderror
@error('issue_date') @enderror
@error('due_date') @enderror

@lang('sales::invoices.Customer Details'):

@lang('sales::invoices.Phone'):
@lang('sales::invoices.Email'):

@error('products.*')

{{ $message }}

@enderror @error('products')

{{ $message }}

@enderror @error('labor_fee')

{{ $message }}

@enderror
@if ($customFields->count())
@foreach ($customFields as $key => $field)
@if ($field['type'] == 'checkbox') @else @endif
@endforeach
@endif
@error('terms') @enderror
@error('notes') @enderror
@if ($proformaInvoice && $proformaInvoice->deletedProducts) {{-- -------------- popup for displaying bill deleted products ------------------- --}} @endif
@endsection @section('extra_scripts') @include('sales::scripts.get_products_sales_script') @endsection