@extends('admin.layouts.layout') @section('css') @endsection @section('content')

{{ $module }}

@if($permission['create']) Add {{ $module }} @endif
@if(isset($data) && count($data) > 0) @foreach($customer_agent_type_options as $option) @endforeach @if($permission['edit']) @endif @foreach($data as $key => $type) @php $settings = is_string($type->settings) ? json_decode($type->settings, true) : $type->settings; @endphp @foreach($customer_agent_type_options as $option) @endforeach @if($permission['edit']) @endif @endforeach
Type Title User Category{{ $option->option }}Action
{{ $type->title }} {{ $type->userType ? $type->userType->name : 'N/A' }} @if(is_array($settings) && isset($settings[$option->id])) @else @endif Edit
@if($data->hasPages())
{!! $data->appends(request()->query())->links() !!}
@endif @else
No records found.
@endif
@endsection @section('scripts') @endsection