@extends('companyuser::layouts.master') @section('title', __('companyuser::sidebar.Forms Design')) @section('extra-styles') @endsection @section('breadcrumb') @endsection @section('content') @php // We are defining the zatca-related variables here as we may use them many times in the file. // I am using this syntax to ensure the value of the variable is always bool not an integer, // even though the type casting should work in conditions, but sometime the Form class parses any value as true regardless if it's 0 or falsy value. $isZatcaComplied = ($companyInfo->zatca_comply) ? true : false; @endphp
@csrf
@include('companyuser::errors.lists')
@include('settings::forms_design.components.document-types')

@lang('settings::forms_design.invoice_configuration')

{{-- reference number --}}
@error('reference')

{{ $message }}

@enderror
{{-- sequence number --}}
@error('sequence')

{{ $message }}

@enderror
{{-- labor_fee --}}
labor_fee) ? 'checked' : '' }}>
{{-- commercial_number --}}
commercial_number) ? 'checked' : '') }} {{ $isZatcaComplied ? 'disabled' : '' }} title="This field is required when your company is complied to Zatca">
{{-- Invoice Time --}}
invoice_time) ? 'checked' : '') }} {{ $isZatcaComplied ? 'disabled' : '' }} title="This field is required when your company is complied to Zatca">
{{-- automatic email --}}

@lang('settings::forms_design.printing_settings')

@error('printing_language')

{{ $message }}

@enderror
{{-- paper size --}}
@error('paper_size')

{{ $message }}

@enderror
{{-- color --}}
@error('color')

{{ $message }}

@enderror
@if(request()->get('is_templates_allowed')) {{-- Template --}}
@php // Custom Template for Malazuae, Ezhalha if($subdomain == 'malazuae' || $subdomain == 'ezhalha'){ $data['templates'] = ['template_custom' => __('settings::forms_design.custom_template')]; }else{ unset($data['templates']['template_custom']); } @endphp
@error('template')

{{ $message }}

@enderror
@if($subdomain != 'malazuae' && $subdomain != 'ezhalha') @endif
@else @endif @include('settings::forms_design.components.document-font-size-selector')
payment_term) ? 'checked' : '' }}>
payment_account) ? 'checked' : '' }}>
cost_center) ? 'checked' : '' }}>
customer_email) ? 'checked' : '' }}>
customer_phone_number) ? 'checked' : '' }}>
description) ? 'checked' : '' }}>
{{-- customer_tax_number --}}

@lang('settings::forms_design.payment_information')

{{-- Bank Name --}}
@error('bank_name')

{{ $message }}

@enderror
{{-- Account Name --}}
@error('account_name')

{{ $message }}

@enderror
{{-- IBAN --}}
@error('iban')

{{ $message }}

@enderror

@lang('settings::forms_design.header')

@error('header')

{{ $message }}

@enderror

@lang('settings::forms_design.products_and_parameters')

product_image) ? 'checked' : '' }}>
product_description) ? 'checked' : '' }}>
tax_amount ? 'checked' : '' }}>
discount ? 'checked' : '' }}>
unit) ? 'checked' : '' }}>
{{-- include/exclude vat --}}

@lang('settings::forms_design.notes')

print_notes) ? 'checked' : '' }}>
@error('notes')

{{ $message }}

@enderror

@lang('settings::forms_design.terms_and_conditions')

@error('terms')

{{ $message }}

@enderror

@lang('settings::forms_design.footer')

@error('footer')

{{ $message }}

@enderror
@include('settings::forms_design.update_confirmation', ['module_name' => __('settings::forms_design.previous sales invoice')]) @endsection @section('extra_scripts') @endsection