@extends('admin.layout.master') @section('title', __('admin.areas')) @section('styles') @endsection @section('content')
{{ __('admin.areas') }}
@foreach ($areas as $area) @endforeach
{{ __('admin.name') }} {{ __('admin.action') }}
{{ $area->name }}
{{ $areas->links() }}
@endsection ``` ### 2. Area Create/Edit View (`createOrEdit.blade.php`) This view will handle creating and editing areas, including only the name fields in English and Arabic, removing the governorate dropdown. The image-related script will also be removed as it’s not used in the provided AreaController. ```blade @extends('admin.layout.master') @section('title', isset($area) ? __('admin.edit_area') : __('admin.add_area')) @section('content')
{{ isset($area) ? __('admin.edit_area') : __('admin.add_area') }}
@csrf @if (isset($area) && is_object($area)) @method('PUT') @endif
@error('name.en')
{{ $message }}
@enderror
@error('name.ar')
{{ $message }}
@enderror
@if ($errors->any()) @endif @endsection