@extends("layouts.app") @section('title', 'Dashboard') @push('pre_css') @include('panel.inc.flatpicker.css') @endpush @push('css') @include('panel.inc.datatable.css') @endpush @section('content')
{{ $isClockRunning ? 'Clock started at: '.$attendance->clock_in->format('M d, Y - h:i A') : 'You are currently clocked out.' }}
@include('_announcements', ['announcements' => $announcements])
@forelse($pendingTechAssign as $command) @empty @endforelse
Campaign Command Due Date Note
{{ $command->campaign->title }} {{ $command->title }} {{ $command->due_date ? $command->due_date->toDateString() : '-' }} {!! nl2br($command->note) !!} @if(\Gate::allows('campaigns-commands-assign-tech')) Assign Tech @endif @if(isUser([\App\User::TeamLead, \App\User::Tech])) @endif
No Commands are pending for technician assign!
@if(\Gate::allows('campaigns'))
{!! $campaignDataTableWithinPrevious5Days->table() !!}
@endif @if(\Gate::allows('campaigns'))
{!! $campaignDataTable->table() !!}
@endif {{-- @forelse($myPendingCommands as $command)
{{ $command->title }}
@if(isUser(\App\User::TeamLead))
{{ $command->tech_id ? $command->tech->name : '-' }}
@endif
{{ $command->due_date ? $command->due_date->toDateString() : '-' }}
{{ $command->end_date ? $command->end_date->toDateString() : '-' }}
{{ $command->note ?? '-' }}
@if(\Gate::allows('campaigns-commands-mark-complete')) Mark As Complete @endif
@empty

No Commands Pending

@endforelse--}} {{--
@forelse($pendingTechAssign as $command)
{{ $command->title }}
@if(isUser(\App\User::TeamLead))
{{ $command->tech_id ? $command->tech->name : '-' }}
@endif
{{ $command->due_date ? $command->due_date->toDateString() : '-' }}
{{ $command->end_date ? $command->end_date->toDateString() : '-' }}
{{ $command->note ?? '-' }}
@if(\Gate::allows('campaigns-commands-assign-tech')) Assign Tech @endif
@empty

No Records Found

@endforelse
--}} @endsection @push('script') @include('panel.inc.datatable.js') @include('panel.inc.flatpicker.js') @if(\Gate::allows('campaigns')) {!! $campaignDataTable->scripts() !!} {!! $campaignDataTableWithinPrevious5Days->scripts() !!} @endif @endpush