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

{{ translate('Region') }}

@foreach ($regions as $key => $region) @endforeach
#
{{ translate('City') }} {{ translate('Title') }} {{ translate('Code') }} {{ translate('Active') }} {{ translate('Options') }}
{{ $key + 1 + ($regions->currentPage() - 1) * $regions->perPage() }}
@if ($region->city) {{ $region->city->getTranslation('title') }} @else {{ translate('This region dont belong to any city') }} @endif {{ $region->getTranslation('title') }} {{ $region->code }}
{{ $regions->links() }}

{{ translate('Add region') }}

{!! Form::open(['method' => 'post', 'action' => 'Admin\RegionController@store', 'files' => true]) !!}
{!! Form::select('city_id', $cities, null, ['class' => 'form-control select2', 'data-placeholder' => translate('City')]) !!}
@error('city_id')
{{ $message }}
@enderror
{!! Form::text('title', null, ['class' => 'form-control', 'placeholder' => translate('Title')]) !!}
@error('title')
{{ $message }}
@enderror
{!! Form::text('code', null, ['class' => 'form-control', 'placeholder' => translate('Code')]) !!}
@error('code')
{{ $message }}
@enderror
{!! Form::number('shipping_cost', null, ['class' => 'form-control', 'placeholder' => translate('Shipping cost')]) !!}
@error('shipping_cost')
{{ $message }}
@enderror
{!! Form::checkbox('active', null, 1, ['id' => 'Checkbox_1']) !!}
{!! Form::Close() !!}
@endsection @section('script') @endsection