@extends('ticketit::layouts.master') @section('page', trans('ticketit::admin.status-index-title')) @section('ticketit_header') {!! link_to_route( $setting->grab('admin_route').'.status.create', trans('ticketit::admin.btn-create-new-status'), null, ['class' => 'btn btn-primary']) !!} @stop @section('ticketit_content_parent_class', 'p-0') @section('ticketit_content') @if ($statuses->isEmpty())
{{ trans('ticketit::admin.table-id') }} | {{ trans('ticketit::admin.table-name') }} | {{ trans('ticketit::admin.table-action') }} |
---|---|---|
{{ $status->id }} | {{ $status->name }} | {!! link_to_route( $setting->grab('admin_route').'.status.edit', trans('ticketit::admin.btn-edit'), $status->id, ['class' => 'btn btn-info'] ) !!} {!! link_to_route( $setting->grab('admin_route').'.status.destroy', trans('ticketit::admin.btn-delete'), $status->id, [ 'class' => 'btn btn-danger deleteit', 'form' => "delete-$status->id", "node" => $status->name ]) !!} {!! CollectiveForm::open([ 'method' => 'DELETE', 'route' => [ $setting->grab('admin_route').'.status.destroy', $status->id ], 'id' => "delete-$status->id" ]) !!} {!! CollectiveForm::close() !!} |