@extends('admin.settings.setting-layout') @section('title') Sources @endsection @section('content')

Sources ({{ count(@$sources) }})

@if (userCan('source.update') || userCan('source.delete')) @endif @forelse ($parentRows as $parentRow) @foreach ($childRows[$parentRow->id] as $childRow) @endforeach @empty @endforelse
# {{ __('icon') }} NameAction
{{ $loop->iteration }}
{{ $parentRow->name }}
@if (userCan('source.update')) @endif @if (userCan('source.delete'))
@method('DELETE') @csrf
@endif
({{ romanNumeral($loop->iteration) }}) {{ $childRow->name }} @if (userCan('source.update')) @endif @if (userCan('source.delete'))
@method('DELETE') @csrf
@endif
{{ __('no_data_found') }}
{{-- edit --}} @if (!empty($source) && userCan('source.update'))

Edit Source

{{ __('create') }}
@csrf @method('PUT')
@error('name') {{ __($message) }} @enderror
@error('icon') {{ $message }} @enderror
@endif {{-- create --}} @if (empty($source) && userCan('source.create'))

Create Sources

@if (userCan('source.create'))
@csrf
@error('name') {{ __($message) }} @enderror @error('parent_id') {{ __($message) }} @enderror
@error('icon') {{ $message }} @enderror
@else

{{ __('dont_have_permission') }}

@endif
@endif
@endsection @section('script') @endsection