| # | {{ translate('Province') }} | {{ translate('Title') }} | {{ translate('Code') }} | {{ translate('Logo') }} | {{ translate('Active') }} | {{ translate('Options') }} |
|---|---|---|---|---|---|---|
| {{ $key + 1 + ($cities->currentPage() - 1) * $cities->perPage() }} | {{ $city->province->getTranslation('title') }} | {{ $city->getTranslation('title') }} | {{ $city->code }} |
@php
if ($city->logo) {
$link = $city->logo;
} else {
$link = '/images/noimg.png';
}
@endphp
|
|
{{ $cities->links() }}
{{ translate('Add City') }}
{{ $message }}
@enderror
{!! Form::select('province_id', $provinces, null, ['class' => 'form-control select2', 'data-placeholder' => translate('Province')]) !!}
@error('province_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::checkbox('active', null, 1, ['id' => 'Checkbox_1']) !!}