{{-- This optional header slot will go into the
of your layout --}}

{{ __('Sources') }}

@can('create', \App\Models\Source::class) {{ __('Add New Source') }} @endcan
@if(session('success')) @endif

Filters

Reset
@forelse($sources as $source) @empty @endforelse
Type Location Production Method Area Status Owner Actions
{{ config('at.type.' . $source->type, $source->type) }}
@if($source->gps_lat && $source->gps_long)
{{ $source->gps_lat }}, {{ $source->gps_long }}
@else N/A @endif
{{ $source->production_method ?? 'N/A' }} {{ $source->area ?? 'N/A' }} @php $statuses = config('at.source_status', []); $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'approved' => 'bg-green-100 text-green-800', 'rejected' => 'bg-red-100 text-red-800', 'active' => 'bg-blue-100 text-blue-800', 'inactive' => 'bg-gray-100 text-gray-800' ]; $color = $statusColors[$source->status] ?? 'bg-gray-100 text-gray-800'; @endphp @can('manage_source')
@else {{ $statuses[$source->status] ?? ucfirst($source->status) }} @endcan
{{ $source->owner->name }}
View @can('edit', $source) Edit @endcan @can('delete', $source) @endcan
No sources found.
{{ $sources->links() }}