@extends('backEnd.master') @section('slot_name') @lang('hr.slotemployee') @endsection @section('mainContent')
@if (isset($slotemployee)) @if (userPermission('slotemployee-store')) @endif @endif
@if (isset($slotemployee)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => ['slotemployee-update', $slotemployee->id], 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }} @else @if (userPermission('slotemployee-store')) {{ Form::open([ 'class' => 'form-horizontal', 'files' => true, 'route' => 'slotemployee-store', 'method' => 'POST', 'enctype' => 'multipart/form-data', ]) }} @endif @endif

@if (isset($slotemployee)) @lang('hr.edit_slotemployee') @else @lang('hr.add_slotemployee') @endif

@php if (isset($slotemployee)) { $slotemployee->slot_day = explode(',', $slotemployee->slot_day); } @endphp
@if ($errors->has('slot_day')) {{ $errors->first('slot_day') }} @endif
@if ($errors->has('slot_start')) {{ $errors->first('slot_start') }} @endif
@if ($errors->has('slot_end')) {{ $errors->first('slot_end') }} @endif
@php $tooltip = ''; if (userPermission('slotemployee-store')) { $tooltip = ''; } elseif (isset($slotemployee) && userPermission('slotemployee-edit')) { $tooltip = ''; } else { $tooltip = 'You have no permission to add'; } @endphp
{{ Form::close() }}

@lang('hr.slotemployee_list')

@foreach ($slotemployees as $slot) @endforeach
@lang('hr.slot_day') @lang('hr.slot_start') @lang('hr.slot_end') @lang('common.action')
{{ $slot->slot_day }} {{ formatTime($slot->slot_start) }} {{ formatTime($slot->slot_end) }} @if (userPermission('slotemployee-edit')) @lang('common.edit') @endif @if (userPermission('slotemployee-delete')) @lang('common.delete') @endif
@endsection @include('backEnd.partials.data_table_js')