@extends('backend.layouts.master')

@section('content')
	<div class="content">
		<div class="main-content">
			<h1>{{ __('forms.Insurers') }}</h1>
			<a href="{{ route('crm.insurers.create') }}"
				class="ti-btn ti-btn-soft-success py-1 px-3 my-0">{{ __('forms.CreateNew') }}</a>
			<table>
				<thead>
					<tr>
						<th>{{ __('forms.Name') }}</th>
						<th>{{ __('forms.Email') }}</th>
						<th>{{ __('forms.Status') }}</th>
						<th>{{ __('forms.Actions') }}</th>
					</tr>
				</thead>
				<tbody>
					@forelse($insurers as $insurer)
						<tr>
							<td>{{ $insurer->sort_name }}</td>
							<td>{{ $insurer->email }}</td>
							<td>
								{{-- <a href="{{ route('crm.insurers.edit', $insurer) }}" class="ti-btn ti-btn-soft-info py-1 px-3 mr-2">
									<i class="ti ti-edit"></i>
								</a>
								<form action="{{ route('crm.insurers.destroy', $insurer) }}" method="POST" style="display:inline;">
									@csrf
									@method('DELETE')
									<button class="ti-btn ti-btn-soft-danger py-1 px-3" onclick="return confirm('Are you sure?')">
										<i class="ti ti-trash"></i>
									</button>
								</form> --}}
							</td>
						</tr>
					@empty
						<tr>
							<td colspan="4">No insurers found.</td>
						</tr>
					@endforelse
				</tbody>
			</table>
		</div>
	</div>
@endsection
