@extends('admin.layout.main') @section('content')
@if(auth()->user()->dostup !== 5)
@else
@endif
@if($errors->any())
{!! trans('admin.msg_data_error') !!} @foreach ($errors->all() as $error) {{ $error }} @endforeach
@else @if(session()->has('message-valid'))
{!! session()->get('message-valid') !!}
@endif @if(session()->has('message-unvalid'))
{!! session()->get('message-unvalid') !!}
@endif @if(session()->has('message-warning'))
{!! session()->get('message-warning') !!}
@endif @endif
@if(auth()->user()->dostup == 1) @endif @foreach ($cars as $row) @if(auth()->user()->dostup == 1) @endif @endforeach
{{ trans('admin.car_title') }} {{ trans('admin.car_category') }}{{ trans('admin.car_date_create') }} {{ trans('admin.car_author_create') }} {{ trans('admin.car_date_edit') }} {{ trans('admin.car_author_edit') }}{{ trans('admin.view_global_actions') }}
@if ($row->image) @else @endif {{ $row->languages->first()->pivot->title }} {{ $row->category->languages->first()->pivot->title }}{{ date('d.m.Y H:i', strtotime($row->created_at)) }} {{ $row->user->username }} {{ date('d.m.Y H:i', strtotime($row->updated_at)) }} @if ($row->user_update){{ $row->user_update->username }} @else - @endif @if($row->languages->first()->pivot->slug == 'h350') @endif @if($row->languages->first()->pivot->slug == 'i10') @endif @if($row->languages->first()->pivot->slug == 'i20') @endif @if($row->languages->first()->pivot->slug == 'i20active') @endif @if($row->languages->first()->pivot->slug == 'i30new') @endif @if($row->languages->first()->pivot->slug == 'i40') @endif @if($row->languages->first()->pivot->slug == 'i40new') @endif @if($row->languages->first()->pivot->slug == 'h1') @endif @if($row->languages->first()->pivot->slug == 'elantra') @endif @if($row->languages->first()->pivot->slug == 'tucson') @endif @if($row->languages->first()->pivot->slug == 'santafe') @endif @if($row->languages->first()->pivot->slug == 'grandsantafe') @endif @if($row->languages->first()->pivot->slug == 'hybrid') @endif @if($row->languages->first()->pivot->slug == 'kona') @endif @if($row->languages->first()->pivot->slug == 'i20coupe') @endif @if($row->languages->first()->pivot->slug == 'i30wagon') @endif @if($row->languages->first()->pivot->slug == 'newi30n') @endif @if($row->languages->first()->pivot->slug == 'ioniqelectric') @endif @if($row->languages->first()->pivot->slug == 'ioniqplug') @endif @if($row->languages->first()->pivot->slug == 'i30f') @endif
@if ( $row->visible ) @else @endif
@stop