StocksNew/Modules/PMS/resources/views/ticket/index.blade.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

73 lines
2.9 KiB
PHP

@extends('layouts.app')
@inject('employeeRepository', 'Modules\Employee\Repositories\EmployeeRepository')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
@include('pms::ticket.partials.menu')
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table id="buttons-datatables" class="display table-sm table-bordered table" style="width:100%">
<thead>
<tr>
<th>S.N</th>
<th>Ticket</th>
<th>Assigned</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@forelse ($tickets as $key => $ticket)
<tr>
<td>{{ $key + 1 }}</td>
<td>{{ $ticket->subject }}</td>
<td>
<div class="avatar-group flex-nowrap">
<div class="avatar-group-item">
Assigned
</div>
</div>
</td>
<td>
{{-- <span class="badge bg-{{ $task->status_name['color'] }}"> {!! $task->status_name['status'] !!} </span> --}}Status
</td>
<td>
<div class="hstack flex-wrap gap-3">
@can('ticket.show')
<a href="{{ route('ticket.show', $ticket->id) }}" class="link-info fs-15">
<i class="ri-eye-line"></i>
</a>
@endcan
@can('ticket.edit')
<a href="{{ route('ticket.edit', $ticket->id) }}" class="link-success fs-15 edit-item-btn"><i
class="ri-edit-2-line"></i></a>
@endcan
@can('ticket.destroy')
<a href="javascript:void(0);" data-link="{{ route('ticket.destroy', $ticket->id) }}"
data-id="{{ $ticket->id }}" class="link-danger fs-15 remove-item-btn"><i
class="ri-delete-bin-line"></i></a>
@endcan
</div>
</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!--end row-->
</div>
</div>
@endsection