@extends('pages.admin.master') @section('title', trans('content.KEY_SITETITLE')) @section('content')

{{trans('admin.COMPANIES_LIST')}}

{{trans('admin.FILTER_INFO')}}
{{Form::open(['url' => url('admin/companies'), 'method' => 'get']) }}
{{ Form::text('name', $nameFilter?$nameFilter:'', ['placeholder' => 'Company name', 'class'=>'form-control']) }}
@foreach($tags as $tag)
@if(App::getLocale() == 'ru') id, $tagsFilter)?'checked':''}}>
@elseif(App::getLocale() == 'pl') id, $tagsFilter)?'checked':''}}>
@else id, $tagsFilter)?'checked':''}}>
@endif
@endforeach
@foreach($groups as $group)
@if(App::getLocale() == 'ru') id, $groupFilter)?'checked':''}}>
@elseif(App::getLocale() == 'pl') id, $groupFilter)?'checked':''}}>
@else id, $groupFilter)?'checked':''}}>
@endif
@endforeach
@foreach($categories as $category)
@if(App::getLocale() == 'ru') id, $categoryFilter)?'checked':''}}>
@elseif(App::getLocale() == 'pl') id, $categoryFilter)?'checked':''}}>
@else id, $categoryFilter)?'checked':''}}>
@endif
@endforeach
{{ Form::submit(trans('admin.FILTER'), array('class' => 'btn btn-success button-right')) }} {{ Form::close() }}
@if(Session::get('msg'))
{{Session::get('msg')}}
@endif @forelse ($companies as $company) @if(App::getLocale() == 'ru') @elseif(App::getLocale() == 'pl') @else @endif @empty
{{trans('admin.NAME')}} {{trans('admin.DESCRIPTION')}} {{trans('admin.TAGS')}} {{trans('admin.OPTIONS')}}
{{$company->name_ru?$company->name_ru:$company->name}} @foreach($company->tags as $tag) {{$tag->name_ru?$tag->name_ru:$tag->name}} @endforeach {{trans('admin.SEE_MORE')}} {{trans('admin.EDIT')}}
{{$company->name_pl?$company->name_pl:$company->name}} @foreach($company->tags as $tag) {{$tag->name_pl?$tag->name_pl:$tag->name}} @endforeach {{trans('admin.SEE_MORE')}} {{trans('admin.EDIT')}}
{{$company->name}} @foreach($company->tags as $tag) {{$tag->name}} @endforeach {{trans('admin.SEE_MORE')}} {{trans('admin.EDIT')}}

{{trans('admin.NO_COMPANIES')}}

@endforelse
{{ $companies->appends(Input::except('page')) }}
@endsection