@extends('layouts.admin') @section('title', trans_choice('general.companies', 2)) @can('create-common-companies') @section('new_button') {{ trans('general.add_new') }} @endsection @endcan @section('content')
{!! Form::open([ 'method' => 'GET', 'route' => 'companies.index', 'role' => 'form', 'class' => 'mb-0' ]) !!}
{{ Form::bulkActionRowGroup('general.companies', $bulk_actions, ['group' => 'common', 'type' => 'companies']) }} {!! Form::close() !!}
@foreach($companies as $item) @endforeach
{{ Form::bulkActionAllGroup() }} @sortablelink('id', trans('general.id'), ['filter' => 'active, visible'], ['class' => 'col-aka', 'rel' => 'nofollow']) @sortablelink('name', trans('general.name')) @sortablelink('email', trans('general.email')) @sortablelink('created_at', trans('general.created')) @sortablelink('enabled', trans('general.enabled')) {{ trans('general.actions') }}
@if ((session('company_id') != $item->id)) {{ Form::bulkActionGroup($item->id, $item->name) }} @else {{ Form::bulkActionGroup($item->id, $item->name, ['disabled' => 'true']) }} @endif {{ $item->id }} {{ $item->name }} {{ $item->email }} @date($item->created_at) @if ((session('company_id') != $item->id) && user()->can('update-common-companies')) {{ Form::enabledGroup($item->id, $item->name, $item->enabled) }} @else @if ($item->enabled) {{ trans('general.yes') }} @else {{ trans('general.no') }} @endif @endif
@endsection @push('scripts_start') @endpush