@extends('layouts.admin') @section('content')
{{ trans('global.create') }} {{ trans('cruds.company.title_singular') }}
@csrf
@if($errors->has('name')) {{ $errors->first('name') }} @endif

{{ trans('cruds.company.fields.name_helper') }}

@if($errors->has('address')) {{ $errors->first('address') }} @endif

{{ trans('cruds.company.fields.address_helper') }}

@if($errors->has('telephone')) {{ $errors->first('telephone') }} @endif

{{ trans('cruds.company.fields.address_helper') }}

@if($errors->has('description')) {{ $errors->first('description') }} @endif

{{ trans('cruds.company.fields.description_helper') }}

@if(auth()->user()->isAdmin()) {{-- Check if the user is an admin --}}
@else
@endif
@if($errors->has('city_id')) {{ $errors->first('city_id') }} @endif
@if($errors->has('categories')) {{ $errors->first('categories') }} @endif

{{ trans('cruds.company.fields.categories_helper') }}

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@endsection @section('scripts') @stop