@extends('admin.layout') @section('content')

{{ translate('Addon categories') }}

@foreach ($categories as $key => $category) @endforeach
# {{ translate('Arabic title') }} {{ translate('English title') }} {{ translate('Options') }}
{{ $key + 1 + ($categories->currentPage() - 1) * $categories->perPage() }} {{ $category->title_ar }} {{ $category->title_en }}
{{ $categories->links() }}

{{ translate('Add Category') }}

{!! Form::open(['method' => 'post', 'action' => 'Admin\AddonCategoryController@store', 'files' => true]) !!}
{!! Form::text('title_ar', null, ['class' => 'form-control', 'placeholder' => translate('Arabic title')]) !!}
@error('title_ar')
{{ $message }}
@enderror
{!! Form::text('title_en', null, ['class' => 'form-control', 'placeholder' => translate('English title')]) !!}
@error('title_en')
{{ $message }}
@enderror
{!! Form::Close() !!}
@endsection @section('script') @endsection