83 lines
3.0 KiB
PHP
83 lines
3.0 KiB
PHP
@extends('admin.layouts.master')
|
|
|
|
@section('pageTitle', 'Manage Languages')
|
|
@section('content')
|
|
|
|
|
|
<div class="page-header">
|
|
<h1 class="page-title">Manage Languages</h1>
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="{{ route('dashboard') }}">Dashboard</a></li>
|
|
<li class="breadcrumb-item active">Manage Languages</li>
|
|
</ol>
|
|
<div class="page-header-actions">
|
|
<a class="btn btn-dark" href="{{ route('add-language') }}">
|
|
<i class="icon wb-plus" aria-hidden="true"></i>
|
|
<span class="hidden-sm-down">Creat Language</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>LanguageID</th>
|
|
<th>Name</th>
|
|
<th>Short Name</th>
|
|
<th>Serial No</th>
|
|
<th>Status</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<tr>
|
|
<th>LanguageID</th>
|
|
<th>Name</th>
|
|
<th>Short Name</th>
|
|
<th>Serial No</th>
|
|
<th>Status</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</tfoot>
|
|
<tbody>
|
|
@if (!empty($languages))
|
|
@foreach($languages as $key=> $language)
|
|
<tr>
|
|
<td>{{ $language->id }}</td>
|
|
<td>{{ $language->name }}</td>
|
|
<td>{{ $language->short_name }}</td>
|
|
<td>{{ $language->serial_no }}</td>
|
|
<td>
|
|
@if($language->status && $language->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 m-1" href="{{ route('view-language', base64_encode($language->id)) }}" 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-language', base64_encode($language->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-language', base64_encode($language->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
|