@extends('layout')@section('c')
Manpower requests
Tell the agency what workers you need, and see who has been assigned
@foreach($rows as $x)@php $as=$assigned[$x->id]??collect(); @endphp
{{ $x->quantity }}x {{ $x->trade }}
{{ ucfirst($x->status) }}
Sent {{ substr($x->created_at,0,10) }}@if($x->salary) · {{ $x->salary }}@endif
@if($x->needed_by) · needed by {{ $x->needed_by }}@endif
@if($x->notes)
{{ $x->notes }}
@endif
@if($x->admin_note)
Agency note: {{ $x->admin_note }}
@endif
@if($as->count())
| Candidate assigned | Progress | Status |
@foreach($as as $c)@php $pct=$reqStages?round($c->done_n*100/$reqStages):0; @endphp
| {{ $c->full_name }} |
| {{ $c->status }} |
@endforeach
@else
No candidate assigned to this request yet.
@endif
@endforeach
@if(!$rows->count())You haven't sent any requests yet.
@endif
@endsection