86 lines
3.1 KiB
PHP
86 lines
3.1 KiB
PHP
@extends('admin.layouts.master')
|
|
|
|
@section('pageTitle', 'Manage Contacts')
|
|
@section('content')
|
|
|
|
|
|
<div class="page-header">
|
|
<h1 class="page-title">Manage Contacts</h1>
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="{{ route('dashboard') }}">Dashboard</a></li>
|
|
<li class="breadcrumb-item active">Manage Contacts</li>
|
|
</ol>
|
|
<div class="page-header-actions">
|
|
<a class="btn btn-dark" href="{{ route('add-contact') }}">
|
|
<i class="icon wb-plus" aria-hidden="true"></i>
|
|
<span class="hidden-sm-down">Creat Contact</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="page-content">
|
|
<div class="panel">
|
|
<div class="panel-body">
|
|
<table class="table table-hover dataTable table-striped w-full" data-plugin="dataTable">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Name Of The Organization</th>
|
|
<th>Alternative Name</th>
|
|
<th>Address</th>
|
|
<th>Telephone Number</th>
|
|
<th>Status</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Name Of The Organization</th>
|
|
<th>Alternative Name</th>
|
|
<th>Address</th>
|
|
<th>Telephone Number</th>
|
|
<th>Status</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</tfoot>
|
|
<tbody>
|
|
@if (!empty($contacts))
|
|
@foreach($contacts as $key=> $contact)
|
|
<tr>
|
|
<td>{{ $key+1 }}</td>
|
|
<td>{{ $contact->organization_name }}</td>
|
|
<td>{{ $contact->alternative_name }}</td>
|
|
<td>{{ $contact->address }}</td>
|
|
<td>{{ $contact->telephone_number }}</td>
|
|
<td>
|
|
@if($contact->status && $contact->status=='1')
|
|
<a class="btn btn-success btn-sm" href="#" data-toggle="tooltip" data-original-title="Active"><i class="fa fa-check" aria-hidden="true"></i></i></a>
|
|
@else
|
|
<a class="btn btn-danger btn-sm" href="#" data-toggle="tooltip" data-original-title="Inactive"><i class="fa fa-times" aria-hidden="true"></i></i></a>
|
|
@endif
|
|
</td>
|
|
<td>
|
|
<!-- <a class="btn btn-sm btn-icon btn-default btn-outline btn-round" href="#" data-toggle="tooltip" data-original-title="View"><i class="icon wb-eye" aria-hidden="true"></i></a>
|
|
-->
|
|
<a class="btn btn-sm btn-icon btn-default btn-outline btn-round" href="{{ route('edit-contact', base64_encode($contact->id)) }}" data-toggle="tooltip" data-original-title="Edit"><i class="icon wb-edit" aria-hidden="true"></i></a>
|
|
|
|
<a class="btn btn-sm btn-icon btn-default btn-outline btn-round" onclick="confirm('Are you sure you want to delete this record? All the related data will be deleted also.') ? '' : event.preventDefault();" href="{{ route('delete-contact', base64_encode($contact->id)) }}" data-toggle="tooltip" data-original-title="{{ __('Delete') }}"><i class="icon wb-trash" aria-hidden="true"></i></a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
@else
|
|
<tr>
|
|
<td colspan="100%" class="text-center">{{ __('No record found') }}</td>
|
|
</tr>
|
|
@endif
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@endsection
|