{{-- resources/views/probation/cases/create.blade.php Case Registry capture — adapts to the selected case type. The fields captured here ARE that stream's ledger. Uses $officers, $sources, $agencies, $module. Probation-user feedback applied: · Social Inquiry: full Case (Referral) Ledger; Disposal is captured in the Outcome tab. · Probation Order / CSO: "Direct placement" or "Retrieve from social inquiry" (default, searchable); Probationer / CSO Client; no Source of Inquiry; no safeguarding flags; "Date placed" / "Date of expiry". · Aftercare: retrieve from social inquiry (Final home report) only; Borstal or POMAC. --}} @extends('layouts.app') @section('title', 'Register ' . $module['title'] . ' - ICMIS') @push('styles') @include('probation._styles') @endpush @section('content') @php $ct = $module['caseType']; $isSI = $ct === 'social_inquiry'; $isConvert = !empty($module['convertible']); // probation_order / community_service / aftercare_borstal $isAftercare = $ct === 'aftercare_borstal'; $isCso = $ct === 'community_service'; $direct = $module['directAllowed'] ?? true; $client = $module['clientLabel'] ?? 'Offender'; $sources = $sources ?? collect(); $agencies = $agencies ?? collect(); $step = 0; $retrieveLbl = $isAftercare ? 'Retrieve from social inquiry (Final home report)' : 'Retrieve from social inquiry'; @endphp
@include('probation.cases._aftercare_nav')

Register {{ $module['title'] }}

@unless($isSI)
{{ $module['tagline'] }} — this capture is the supervision ledger.
@endunless
@if(session('duplicate_url'))
Open the matching case
@endif @if($errors->any())
@endif
@csrf {{-- DIRECT PLACEMENT or RETRIEVE FROM SOCIAL INQUIRY (supervision streams) --}} @if($isConvert)
{{ ++$step }} Where does this case come from?
@if($direct)
Placed directly by the court into {{ $module['title'] }}.
@endif
@if($sources->isEmpty())
No social inquiry is available to retrieve yet.
@else
Its details carry over automatically. {{ $sources->count() }} inquir{{ $sources->count() === 1 ? 'y' : 'ies' }} available.
@endif
@if($isAftercare)
@endif
@endif
{{-- SOCIAL INQUIRY: referral details --}} @if($isSI)
{{ ++$step }} Referral
Date the case is entered in the case ledger.
@endif {{-- PERSON --}}
{{ ++$step }} {{ $client }}
@if($isSI)
@endif
Calculated from the date of birth.
{{-- the number disappears only when "No Document" is selected --}}
@if($isSI)
@endif @if($isAftercare)
@endif
{{-- CASE / COURT --}}
{{ ++$step }} Case & court details
@if($isSI)
@endif @if(!$isSI && empty($module['hideSource']))
@endif
{{-- ORDER & SUPERVISION (supervision streams) --}} @if($isConvert)
{{ ++$step }} Order & supervision
@unless($isCso)
@endunless @if($isCso)
Agency not listed — add it here
New work agency (station manager)
Quantification: enter the hours and choose the agency to see the value of the order.
@endif
@else
{{ ++$step }} Allocated officer
@if($isSI)
The court's disposal is recorded later in the case Outcome tab.
@endif
@endif {{-- Safeguarding flags are captured in the case's Assessments tab. --}}
Cancel
{{-- guidance --}}
This becomes the {{ $isSI ? 'Case (Referral) Ledger' : 'Central Supervision Ledger' }}
    @if($isSI)
  • Reference number & colour code are generated (black = referral, blue = placement, grey = completion)
  • Type of referral, source, dates referred / noted / mention
  • Name, place remanded, date of birth / age, sex, tribe, nationality, religion
  • Safeguarding flags are set in the Assessments tab
  • Offence, section, CRC / PCR, police station, court, magistrate
  • Allocated officer · disposal goes in the Outcome tab
  • @else
  • Serial, {{ strtolower($client) }}, sex, age, tribe, document
  • Offence/section, CRC, court & magistrate/judge
  • Date placed & date of expiry, officer
  • Source — {{ $direct ? 'direct placement or ' : '' }}retrieved from social inquiry
  • @endif
@push('scripts') @endpush @endsection