@extends('companyuser::layouts.master') @section('title', __('purchases::purchase_orders.new_purchase_order')) @section('extra-styles') @endsection @section('breadcrumb') @endsection @section('content')
@csrf
@include('companyuser::errors.all') @include('companyuser::errors.lists') @error('remaining')

{{ $message }}

@enderror @if($data['remaining'])
@error('journal_number') @enderror
( @lang('optional') )
@error('description')

{{ $message }}

@enderror
{{-- --}}
@error('supplier_id') @enderror
@error('issue_date') @enderror
@error('due_date') @enderror

@lang('purchases::purchase_orders.supplier_details'):

@lang('purchases::purchase_orders.phone'): -
@lang('purchases::purchase_orders.email'): -

@lang('sales::invoices.validate_minimum_quantity_message')

@if($data['purchaseOrder']->custom_fields)
@php $customFields = json_decode($data['purchaseOrder']->custom_fields, true) @endphp
@foreach($customFields as $key=>$field)
@if($field['type']=='checkbox') @else @endif
@endforeach
@endif
@else @include('info.limit_reached') @endif
{{--
--}}
@if($data['fiscalYear']) @endif @endsection @section('extra_scripts') @include('purchases::scripts.get_products_script') @endsection