@extends('admin.layout.master')
@section('title', __('admin.areas'))
@section('styles')
@endsection
@section('content')
| {{ __('admin.name') }} |
{{ __('admin.action') }} |
@foreach ($areas as $area)
| {{ $area->name }} |
|
@endforeach
@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')
@if ($errors->any())
@endif
@endsection