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

View Civilians

View Officers

View Businesses

New Civilian

Courthouse

Active Tickets

@foreach ($civilians as $civilian) @if ($civilian->tickets->count() > 0)

{{ $civilian->name }}'s Tickets/Arrests {{ $civilian->tickets->count() }}

@endif @foreach ($civilian->tickets as $ticket) @if ($ticket->plea_type == 0)
@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
@endif @endforeach @endforeach
@endsection