@extends('layouts.cad') @section('content')
@include('inc.cad.mdt-nav')

Name: {{ $civilian->last_name }}, {{ $civilian->first_name }}

@if ($civilian->status == 2) Active Warrent @endif @if ($civilian->status == 4) Deceased @endif @if ($civilian->is_violent) History of Violence @endif @if ($civilian->is_weapon) History of Weapons @endif @if ($civilian->is_ill) History of Mental Illness @endif

Address:

Driver License:

Social Security:

Phone:

Type:

Occupation:

{{ $civilian->postal }} {{ $civilian->street }} {{ $civilian->city }}

12345

{{ $civilian->s_n_n }}

{{ $civilian->phone_number }}

INDIV - Individual

{{ $civilian->occupation }}

Age:

Birth:

Race:

Sex:

Height:

Weight:

{{ $civilian->age }}

{{ $civilian->date_of_birth->format('m/d/Y') }}

{{ $civilian->race }}

{{ $civilian->gender }}

{{ floor($civilian->height / 12) }}' {{ $civilian->height % 12 }}" ({{ round($civilian->height * 2.54) }}cm)

{{ $civilian->weight }}lb ({{ round($civilian->weight / 2.205) }}kg)

Alerts
@if ($civilian->status == 2) Active Warrent @endif @if ($civilian->is_violent) History of Violence @endif @if ($civilian->is_weapon) History of Weapons @endif @if ($civilian->is_ill) History of Mental Illness @endif

@if ($civilian->status == 2)

Active Warrent

@endif @if ($civilian->is_violent)

History of Violence

@endif @if ($civilian->is_weapon)

History of Weapons

@endif @if ($civilian->is_ill)

History of Mental Illness

@endif
@csrf
{{--

Name History

--}}

Licenses @php $active = 0; $expired = 0; $suspended = 0; @endphp @foreach ($civilian->licenses as $license) @endforeach {{ $active }} Current {{ $suspended }} Suspended {{ $expired }} Expired

@foreach ($civilian->licenses as $license)

{{ $license->license_type->name }} | {{ $license->id }} | {{ $status }} | Expires: {{ $license->expires_on->format('m/d/Y') }}

@endforeach

Vehicles @php $active = 0; $expired = 0; $impounded = 0; $stolen = 0; @endphp @foreach ($civilian->vehicles as $vehicle) @endforeach {{ $active }} Current {{ $impounded }} Suspended {{ $stolen }} Stolen {{ $expired }} Expired

Medical @php $allergies = 0; $conditions = 0; $other = 0; @endphp @foreach ($civilian->medical_records as $record) @endforeach {{ $allergies }} @if ($allergies == 1) Allergy @else Allergies @endif {{ $conditions }} Health Conditions {{ $other }} Other

@foreach ($civilian->medical_records as $record)

{{ $record->name }}: {{ $record->value }}

@endforeach

Firearms @php $owned = $civilian->weapons->count(); @endphp {{ $owned }} Owned

@foreach ($civilian->weapons as $weapon)

{{ $weapon->model }}: {{ $weapon->serial_number }}

@endforeach

Involvements @php $warning = 0; $tickets = 0; $arrests = 0; $rp = 0; $witness = 0; $suspect = 0; @endphp @foreach ($civilian->tickets as $ticket) @endforeach {{ $warning }} Warnings {{ $tickets }} Tickets {{ $arrests }} Arrests

@forelse($civilian->tickets as $ticket)
@php if ($ticket->type_id == 1) { $type = 'Warning'; $text_color = 'text-yellow-500'; } elseif ($ticket->type_id == 2) { $type = 'Ticket'; $text_color = 'text-orange-500'; } elseif ($ticket->type_id == 3) { $type = 'Arrest'; $text_color = 'text-red-500'; } @endphp ({{ $ticket->id }}) {{ $type }} on {{ $ticket->offense_occured_at->format('m/d/Y H:i') }} at {{ $ticket->location_of_offense }} Offense(s) @foreach ($ticket->charges as $charge) @if (!$loop->last) {{ $charge->penal_code->name }} (x{{ $charge->counts }}), @else {{ $charge->penal_code->name }} (x{{ $charge->counts }}) @endif @endforeach

@empty

No Involvements

@endforelse

Notes

Search More Refresh Data
@if (auth()->user()->active_unit->department_type == 1) @elseif (auth()->user()->active_unit->department_type == 2)

@elseif (auth()->user()->active_unit->department_type == 4) New Medical History @endif
@csrf
@endsection