@extends('layouts.civilian') @section('content')

{{ $civilian->name }} (SSN: {{ $civilian->s_n_n }})

@csrf @method('DELETE')
@if (!is_null($civilian->picture)) @else @endif

Full Name: {{ $civilian->name }}

Social Security Number: {{ $civilian->id }}

Date of Birth: {{ $civilian->date_of_birth->format('m/d/Y') }} (Age: {{ $civilian->age }})

Gender: {{ $civilian->gender }}

Race: {{ $civilian->race }}

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

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

Address: {{ $civilian->address }}

Occupation: {{ $civilian->occupation }}

Phone Number: {{ $civilian->phone_number }}

{{-- File Name Change --}} Make 911 Call

Licenses

@forelse($civilian->licenses as $license)
@if ($reregister_button) @endif @if (!$revoked && !$reregister)
@csrf @method('DELETE')
@endif

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

@empty

No Licenses

@endforelse

Medical Records

@forelse($civilian->medical_records as $medical_record)
@csrf @method('DELETE')

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

@empty

No Medical Records

@endforelse

Vehicles {{ $civilian->vehicles->count() }}/{{ $current_civilian_level->vehicle_limit }} used

@if ($current_civilian_level->vehicle_limit > $civilian->vehicles->count()) @endif
@forelse($civilian->vehicles as $vehicle)
@if ($reregister) @endif @if ($transfer) @endif @if ($found) @endif @if ($expire) @endif @if ($stolen) @endif @if ($delete)
@csrf @method('DELETE')
@endif

{{ $vehicle->plate }} | {{ $vehicle->model }} | {{ $status }} | Expires: {{ $vehicle->registration_expire->format('m/d/Y') }}

@empty

No Vehicles

@endforelse

Weapons {{ $civilian->weapons->count() }}/{{ $current_civilian_level->firearm_limit }} used

@if ($current_civilian_level->firearm_limit > $civilian->weapons->count()) @endif
@forelse($civilian->weapons as $weapon)
@csrf @method('DELETE')

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

@empty

No Weapons

@endforelse

Charges

{{--
@if ($current_civilian_level->firearm_limit > $civilian->weapons->count()) @endif
--}}
@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 @if ($ticket->plea_type == 0) @endif {{-- --}} ({{ $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 Charges

@endforelse
@endsection