{{-- Name: company.list Author: JH2 Created: 2015-06-02 Updated by: Arto Laine Description: Updated listing look and added bouncy sticks company.partials.list is used to list Models\Company instances in a partials.box --}} @extends('partials.box') @section($content_id) @if(isset($filter) && $filter == true)
{{ Lang::get('company.status') }} | {{ Lang::get('company.name') }} | {{ Lang::get('company.customerNumber') }} | {{ Lang::get('company.lastLogin') }} | {{ Lang::get('company.receiverCount') }} | {{ Lang::get('company.packageName') }} | {{ Lang::get('company.actions') }} | |
---|---|---|---|---|---|---|---|
@if(\Auth::user()->hasRole('reseller')) {{ $company['name'] }} @else {{ $company['name'] }} @endif | {{ $company['customer_number'] }} | @if(!is_null($company->lastLogin())) @if($company->lastLogin()->last_activity > \Carbon\Carbon::today()) @if($company->lastLogin()->last_activity > \Carbon\Carbon::now()->subMinutes(30)) @elseif($company->lastLogin()->last_activity > \Carbon\Carbon::now()->subMinutes(60)) @else @endif {{ $company->lastLogin()->last_activity }} @else {{ $company->lastLogin()->last_activity }} @endif @endif | {{ number_format(isset($receiver_counts->where('company_id', $company->id)->first()->total) ? $receiver_counts->where('company_id', $company->id)->first()->total : 0, 0) }} | {{ $company->package->name }} ({{ number_format($company->package->monthly_cost, 2, ',', ' ') }} kr) | @if(\Auth::user()->hasRole('superadmin')) {!! Form::model($data, ['method' => 'PUT', 'class' => 'form-horizontal', 'route' => ['admin.company.update', $company->id]]) !!} @if(App\Models\Job::where('queue', 'remove_company_' . \Auth::user()->company_id)->count() != 0) {!! Form::submit(Lang::get('company.activate'), ['class' => 'btn btn-success' ,'data' => 'activate-confirm', 'name' => 'activate']) !!} @elseif($company->status == 1 || $company->status == 0) {!! Form::submit(Lang::get('company.deactivate'), ['class' => 'btn btn-danger' ,'data' => 'deactivate-confirm', 'name' => 'deactivate']) !!} @endif {!! Form::close() !!} @endif @if(Auth::user()->company_id != $company->id) @if(\Auth::user()->hasRole('reseller')) @else @endif @endif @if(\Auth::user()->hasRole('admin')) @endif | ||
{{ Lang::get('company.noresults') }} |