File manager - Edit - /var/www/payraty/hris-standalone/resources/views/department/index.blade.php
Back
@extends('layouts.admin') @section('page-title') {{ __('Manage Department') }} @endsection @section('breadcrumb') <li class="breadcrumb-item"><a href="{{ route('dashboard') }}">{{ __('Home') }}</a></li> <li class="breadcrumb-item">{{ __('Department') }}</li> @endsection @section('action-button') {{-- @can('Create Department') <a href="#" data-url="{{ route('department.create') }}" data-ajax-popup="true" data-title="{{ __('Create New Department') }}" data-bs-toggle="tooltip" title="" class="btn btn-sm btn-primary" data-bs-original-title="{{ __('Create') }}"> <i class="ti ti-plus"></i> </a> @endcan --}} @endsection @section('content') <div class="row"> {{-- <div class="col-3"> @include('layouts.hrm_setup') </div> --}} <div class="col-12"> @include('layouts.hrm_setup') </div> <div class="col-12"> <div class="my-3 d-flex justify-content-end"> @can('Create Department') <a href="#" data-url="{{ route('department.create') }}" data-ajax-popup="true" data-title="{{ __('Create New Department') }}" data-bs-toggle="tooltip" title="" class="btn btn-sm btn-primary" data-bs-original-title="{{ __('Create') }}"> <i class="ti ti-plus"></i> </a> @endcan </div> <div class="row"> <div class="col-sm-12"> <div class="card"> <div class="card-body table-border-style"> <div class="table-responsive"> <table class="table" id="pc-dt-simple"> <thead> <tr> <th>{{ __('Branch') }}</th> <th>{{ __('Department') }}</th> <th>{{ __('Manager') }}</th> <th width="200px">{{ __('Action') }}</th> </tr> </thead> <tbody> @foreach ($departments as $department) <tr> <td>{{ !empty($department->branch) ? $department->branch->name : '' }}</td> <td>{{ $department->name }}</td> <td>{{ !empty($department->manager) ? $department->manager->name : '' }}</td> <td class="Action"> <div class="dt-buttons"> <span class="float-start"> @can('Edit Department') <div class="action-btn me-2"> <a href="#" class="btn btn-sm align-items-center bg-info" data-url="{{ route('department.edit', $department->id) }}" data-ajax-popup="true" data-title="{{ __('Edit Department') }}" data-bs-toggle="tooltip" title="{{ __('Edit') }}" data-original-title="{{ __('Edit') }}"> <i class="ti ti-pencil text-white"></i> </a> </div> @endcan @can('Delete Department') <div class="action-btn "> {!! Form::open([ 'method' => 'DELETE', 'route' => ['department.destroy', $department->id], 'id' => 'delete-form-' . $department->id, ]) !!} <a href="#" class="btn btn-sm align-items-center bs-pass-para bg-danger" data-bs-toggle="tooltip" title="{{ __('Delete') }}"><i class="ti ti-trash text-white text-white"></i></a> {!! Form::close() !!} </div> @endcan </span> </div> </td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> </div> </div> </div> @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.4 |
proxy
|
phpinfo
|
Settings