84 lines
3.0 KiB
PHP
84 lines
3.0 KiB
PHP
@extends('admin.layouts.master')
|
|
|
|
@section('pageTitle', 'Manage Priorities')
|
|
@section('content')
|
|
|
|
|
|
<div class="page-header">
|
|
<h1 class="page-title">Manage Priorities</h1>
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="{{ route('dashboard') }}">Dashboard</a></li>
|
|
<li class="breadcrumb-item active">Manage Priorities</li>
|
|
</ol>
|
|
<div class="page-header-actions">
|
|
<a class="btn btn-dark" href="{{ route('add-priority') }}">
|
|
<i class="icon wb-plus" aria-hidden="true"></i>
|
|
<span class="hidden-sm-down">Creat Priority</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>
|
|
@if(isset($languages) && !empty($languages))
|
|
@foreach($languages as $language)
|
|
<th>Name ({{ strtoupper($language->short_name) }})</th>
|
|
@endforeach
|
|
@endif
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<tr>
|
|
<th>#</th>
|
|
@if(isset($languages) && !empty($languages))
|
|
@foreach($languages as $language)
|
|
<th>Name ({{ strtoupper($language->short_name) }})</th>
|
|
@endforeach
|
|
@endif
|
|
<th>Action</th>
|
|
</tr>
|
|
</tfoot>
|
|
<tbody>
|
|
@if (!empty($priorities))
|
|
@foreach($priorities as $key=> $priority)
|
|
@php
|
|
$names = json_decode($priority->name, true);
|
|
@endphp
|
|
<tr>
|
|
<td>{{ $key+1 }}</td>
|
|
@if(isset($languages) && !empty($languages))
|
|
@foreach($languages as $language)
|
|
<td>{{ isset($names[$language->short_name]) ? $names[$language->short_name] : '' }}</th>
|
|
@endforeach
|
|
@endif
|
|
<!-- <td><a class="btn btn-success btn-sm" href="#" data-toggle="tooltip" data-original-title="Active"><i class="icon wb-check-mini" aria-hidden="true"></i></a></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-priority', base64_encode($priority->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-priority', base64_encode($priority->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
|