@extends('layouts.app', ['title' => __('Customers')]) @section('admin_title') {{ __('Add Job Type') }} @endsection @section('content') {{-- ================= STYLES ================= --}}
{{-- JOB TYPES --}}
{{-- FORM --}}

Add Job Type

@csrf {{-- Hidden method field: empty by default, set to PUT on edit --}}
{{-- TIME CLOCK SETTINGS --}}
Time Clock Settings
{{-- FOODYMAXX ACCESS --}}
FoodyMaxx Access
{{-- FEATURE ACCESS --}}
Feature Access
@foreach(['CUSTOMER','ITEM','SERVICE','SALES','PURCHASE','POS'] as $f)
@endforeach
{{-- OVERTIME RULES --}}
{{-- ================= OVERTIME RULES ================= --}}
Overtime Rules

Enable a rule and set the threshold hours that trigger overtime.

{{-- Rule 1 --}}
hrs / day
{{-- Rule 2 --}}
hrs / day
{{-- Rule 3 --}}
hrs / day
{{-- TABLE --}}

Job Types List

@foreach($jobTypes as $job) @php $otRules = $job->overtime_rules ? json_decode($job->overtime_rules, true) : []; @endphp @endforeach
Job Type Clock PW Shifts Access ID/PW Features OT Rules Action
{{ $job->job_type }} {{ $job->time_clock_required ? 'Yes':'No' }} {{ $job->password_required ? 'Yes':'No' }} {{ $job->time_shifts_allowed ? 'Yes':'No' }} {{ $job->bzcomposer_access ? 'Yes':'No' }} {{ $job->id_password_required ? 'Yes':'No' }} {{ $job->feature_access }} @forelse($otRules as $rNum => $rData) @if(!empty($rData['enabled'])) R{{ $rNum }}: {{ $rData['hours'] }}h @endif @empty None @endforelse
@csrf @method('DELETE')
{{-- SHIFTS --}}

Shifts List

Create Shift
@if($shifts->count()) @foreach($shifts as $s) @endforeach
Date Name Start End Action
{{ $s->date }} {{ $s->name }} {{ \Carbon\Carbon::parse($s->start_time)->format('H:i') }} {{ \Carbon\Carbon::parse($s->end_time)->format('H:i') }} Edit
@else
No shifts found
@endif
@include('layouts.footers.auth')
{{-- SCRIPTS --}} {{-- jQuery MUST come before DataTables and before your script --}} @endsection