@extends('layouts.master') @section('title',trans('app.employees')) @section('content')
@include('companies.sidebar', ['company_id' => $company->id])
@if(!fauth()->user()->is_owner)
{{trans('app.only_admin_can_edit')}}
@endif
@if(fauth()->user()->is_owner) @foreach($employees as $employer) @endforeach @else @foreach($employees as $employer) @endforeach @endif
{{trans('app.active')}} {{trans('app.employee_name')}} {{trans('app.can_pay')}} {{trans('app.view_only')}}
user->id==fauth()->id()?'disabled="true"':''}} name="selected"> user->id==fauth()->id()?'disabled="true"':''}} {{$employer->id==fauth()->id()?'disabled':''}} name="status{{$employer->employee_id}}" @if($employer->status) checked @endif>
{{$employer->user->name}}
user->id==fauth()->id()?'disabled':''}} value="1" name="role{{$employer->employee_id}}" @if($employer->role) checked @endif>
user->id==fauth()->id()?'disabled':''}} value="0" name="role{{$employer->employee_id}}" @if(!$employer->role) checked @endif>
status) checked @endif>
{{$employer->user->name}}
role) checked @endif>
role) checked @endif>
{{$employees->appends(Request::all())->render()}}
@push('scripts') @endpush @endsection