Swap Page

Create a swap between two agents for a single day, multi days, or an OFF day
{{-- --}}
Account : {{ $account_filter ?? $defaultAccount }}
Skill : {{ $skill_filter ?? 'No Skill Selected' }}




@forelse ($swaps as $swap)

From

...

{{ Str::title($swap->userFrom->first_name) }} {{ Str::title($swap->userFrom->last_name) }}

{{ $swap->request_date_from->format('D d/m/y') }} {{ $swap->shiftFrom == null ? 'X' : $swap->shiftFrom->from->format('H:i') }} - {{ $swap->shiftFrom == null ? 'X' : $swap->shiftFrom->to->format('H:i') }}

To

...

{{ Str::title($swap->userTo->first_name) }} {{ Str::title($swap->userTo->last_name) }}

{{ $swap->request_date_to->format('D d/m/y') }} {{ $swap->shiftTo ? $swap->shiftTo->from->format('H:i') : 'X' }} - {{ $swap->shiftTo ? $swap->shiftTo->to->format('H:i') : 'X' }}

Account
{{ Str::title($swap->shiftFrom ? $swap->shiftFrom->account : $defaultAccount) }}
Skill
{{ Str::title($swap->userSkill->wfmSkill->skill_name) }}
Type
{{ Str::title($swap->type) }}
Status
{{ Str::title($swap->status) }}
Expired AT
{{ $swap->expired_at ? $swap->expired_at->format('Y-m-d') : 'No expiry date' }}
Action
-
Comment
{{ $swap->comment ?? '-' }}
@empty
No Swaps Found !
@endforelse
{{ $swaps->links() }}