%PDF- %PDF-
Direktori : /home/silvzytp/crm-ind-code/resources/views/backend/pages/status/ |
Current File : /home/silvzytp/crm-ind-code/resources/views/backend/pages/status/index.blade.php |
@extends('layouts.backend') @section('title', $siteTitle) @section('action') @permission('app.agents.create') <a href="{{ route(routeName().'.status.create') }}" class="btn btn-sm btn-primary"> <i class="ti-plus fs-ism fw-800"></i> Add Status</a> @endpermission @endsection @push('styles') <style> .btn-style{ width: 25px !important; height: 25px !important; } </style> @endpush @section('content') <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body px-0"> <table class="table table-sm table-borderless table-style" id="datatable"> <thead> <th class="text-left">ID</th> <th>Name</th> <th>Is Published</th> <th class="text-right">Action</th> </thead> <tbody> @forelse ($callingStatus as $status) <tr> <td class="text-left">{{ $status->id }}</td> <td>{{ $status->name }}</td> <td>{!! status($status->status) !!}</td> <td> <div class="d-flex align-items-center justify-content-end"> <a href="{{ route(routeName().'.status.edit', $status->id) }}" class="btn-style btn-style-edit mr-1"><i class="fa fa-edit"></i></a> @if ($status->subStatuses->isEmpty()) <button type="button" class="btn-style btn-style-danger delete-btn" data-title="Do you really want to operation selected record(s)?" data-section="{{ route(routeName().'.status.destroy', $status->id) }}"><i class="fa fa-trash"></i></button> @endif </div> </td> </tr> @empty <tr> <td colspan="4" class="text-danger text-center"><strong>No Data Found!</strong></td> </tr> @endforelse </tbody> </table> </div> </div> </div> </div> @endsection @push('scripts') <script> $('table#datatable').DataTable(); </script> @endpush