@extends('layouts.admin') @section('content')
{{ trans('global.edit') }} {{ trans('cruds.company.title_singular') }}
id]) }}" method="POST" enctype="multipart/form-data"> @csrf @method('PUT')
@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 --}}
@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($errors->has('subcategories')) {{ $errors->first('subcategories') }} @endif

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

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

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

@endsection @section('scripts') @stop