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

Type: @if ($ticket->type_id == 1) Warning @elseif($ticket->type_id == 2) Ticket @elseif ($ticket->type_id == 3) Arrest @endif

@if ($ticket->call_id)

Call: {{ $ticket->call->id }} - {{ $ticket->call->nature }} @ {{ $ticket->call->location }}, {{ $ticket->call->city }} on {{ $ticket->call->created_at->format('m/d/Y') }}

@endif

Last Name (Defendant) {{ $ticket->civilian->last_name }}

First Name {{ $ticket->civilian->first_name }}

Address {{ $ticket->civilian->address }}

Showed ID showed_id) class="mx-auto text-center w-full h-6" disabled name="showed_id" type="checkbox">

SSN {{ $ticket->civilian->s_n_n }}

Sex {{ $ticket->civilian->gender }}

Race {{ $ticket->civilian->race }}

@if ($ticket->license_id)

License No. {{ $ticket->license_id }}

Expires {{ $ticket->license->expires_on->format('m/d/Y') }}

Type {{ $ticket->license->license_type->name }}

Suspend license_was_suspended) class="mx-auto text-center w-full h-6" disabled name="license_was_suspended" type="checkbox">

@else

No License Linked

@endif
@if ($ticket->vehicle_id)

Plate {{ $ticket->vehicle->plate }}

Make {{ $ticket->vehicle->model }}

Color {{ $ticket->vehicle->color }}

Expire {{ $ticket->vehicle->registration_expire->format('m/d/Y') }}

Impounded vehicle_was_impounded) class="mx-auto text-center w-full h-6" disabled name="vehicle_was_impounded" type="checkbox">

@else

No Vehicle Linked

@endif

Time {{ $ticket->offense_occured_at->format('H:i') }}

Date {{ $ticket->offense_occured_at->format('m/d/Y') }}

Location {{ $ticket->location_of_offense }}

The Person Described above is charged as follows

@foreach ($ticket->charges as $charge)

Charge {{ $charge->penal_code->name }}

Counts {{ $charge->counts }}

Jail Time (seconds) {{ $charge->in_game_jail_time }}

Fine ($) {{ $charge->fine }}

CAD Jail Time (hours) {{ $charge->cad_jail_time }}

Description {{ $charge->description }}

@endforeach
@livewire('cad.add-charges-to-ticket', ['ticket' => $ticket]) @if ($allow_sign) Finish and Sign Ticket @else

You must add charges before signing the ticket.

@endif
@endsection