@extends('layouts.app') @section('title', 'Security Management') @section('content')

Security Management

@if(auth()->user()->hasPermission('security.create')) Template
@csrf
@endif Add Personnel
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@if(!empty($search)) Clear @endif
@forelse($personnel as $person) @empty @endforelse
Photo Full Name Phone Title Branch Site Region Weapon Weapon Serial Weapon Image Actions
@if($person->staff_photo && file_exists(public_path($person->staff_photo))) Staff photo @else - @endif {{ $person->full_name }} {{ $person->phone_number ?? '-' }} {{ $person->title ?? '-' }} {{ $person->branch?->name ?? '-' }} {{ $person->site?->name ?? '-' }} {{ $person->region ?? '-' }} {{ $person->weapon_name ?? '-' }}@if($person->weapon_model) ({{ $person->weapon_model }})@endif {{ $person->weapon_serial ?? '-' }} @if($person->weapon_image && file_exists(public_path($person->weapon_image))) Weapon image @else - @endif
@csrf @method('DELETE')
No security personnel found. Add one!
@if($personnel->hasPages()) @endif
@endsection