@extends('layouts/contentLayoutMaster') @section('title', __('locale.contacts.new_contact')) @section('vendor-style') {{-- vendor css files --}} @endsection @section('page-style') @endsection @section('content')

{{ __('locale.contacts.new_contact') }}

@csrf
@foreach($contact->getFields as $field) @if($field->visible) @if ($field->tag != 'PHONE') @if($field->type == 'number')
required ? 'required' : '' }}> @error($field->tag)
{{ $message }}
@enderror
@elseif($field->type == 'textarea')
@error($field->tag)
{{ $message }}
@enderror
@elseif($field->type == 'date')
required ? 'required' : '' }}> @error($field->tag)
{{ $message }}
@enderror
@elseif($field->type == 'datetime')
required ? 'required' : '' }}> @error($field->tag)
{{ $message }}
@enderror
@else
required ? 'required' : '' }}> @error($field->tag)
{{ $message }}
@enderror
@endif @else
@error('PHONE')
{{ $message }}
@enderror

@endif @endif @endforeach
@endsection @section('vendor-script') {{-- vendor files --}} @endsection @section('page-script') @endsection