@extends('layouts.civilian') @section('content')
@if ($is_locked)

This business is locked. Get with a supervisor to unlock it.

@endif

{{ $business->name }}

{{ $business->about }}


  • Owner

    @if ($business->owner->picture) @else @endif

    {{ $business->owner->name }}

  • Founded

    {{ $business->created_at->format('M d, Y') }}

  • @if ($is_owner && !$is_locked)
  • Transfer Ownership

    @csrf
  • @endif

Employees

@if (!$is_locked)

Apply

@endif
@foreach ($business->employees as $employee)

@if ($employee->role != 5 && !$is_locked) @if ($is_manager && $employee->role == 2) Fire @elseif ($is_owner) Fire @endif @if ($employee->civilian->user_id == auth()->user()->id) Quit @endif @endif

@if ($employee->civilian->picture) @else @endif

{{ $employee->civilian->name }}

{{ $employee->role_name }}

@if ($is_manager && !$is_locked) @if ($employee->role == 1) Approve Deny @elseif ($employee->role == 2) @if ($is_owner) Promote @endif @elseif ($employee->role == 3 && $is_owner) Demote Promote @elseif ($employee->role == 4) @if ($is_owner) Demote @endif @endif @endif
@endforeach

Vehicles

@if ($is_owner && !$is_locked) @endif
@forelse($business->vehicles as $vehicle)
@if (!$is_locked) @if ($reregister) @endif @if ($transfer) @endif @if ($found) @endif @if ($expire) @endif @if ($stolen) @endif @if ($delete)
@csrf @method('DELETE')
@endif @endif

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

@empty

No Vehicles

@endforelse

Choose Civilian to apply

@csrf
@endsection