File: /home/imensosw/.trash/resources.2/views/admin/artists/settings.blade.php
@extends('layouts.admin')
@section('pageTitle')
<title>{{ trans('panel.site_title') }} {{ trans('global.clients') }}</title>
@endsection
@section('content')
@can('permission_create')
<div class="filter_area">
<div class="container-fluid">
<div class="row align-items-center">
<div class="col-sm-6 pl-0">
<!-- <form class="search">
<input type="text" name="" placeholder="Search for..." class="search__field to_right">
<button type="submit" class="search__icon"><img src="{{url('/images/search.svg')}}" class="img-svg" alt="Heart" /></button>
</form> -->
<h4 class="sub-title mb-0"><i class="ri-user-2-line"></i>{{$user->name}} </h4>
</div>
<div class="col-sm-6 text-right action-icon pr-0">
<!-- <a class="btn btn-primary btn-circle waves-effect waves-ripple" href="{{ route('admin.consultancy.company_setting',1) }}"><i class="ri-add-line"></i>
</a> -->
</div>
</div>
</div>
</div>
@endcan
<div class="row mt-4 vertical_tab">
<div class="col-md-2 col-sm-3">
<!-- Tabs nav -->
<div class="nav flex-column nav-pills nav-pills-custom" id="v-pills-tab" role="tablist" aria-orientation="vertical">
<a class=" d-none hide nav-link mb-3 p-3 " id="v-pills-client-tab" data-toggle="pill" href="#v-pills-client" role="tab" aria-controls="v-pills-client" aria-selected="true">
<i class="ri-user-2-line"></i>
<span class="font-weight-bold">{{trans('global.projects')}}</span>
</a>
<a class="nav-link mb-3 p-3 active" id="v-pills-employee-tab" data-toggle="pill" href="#v-pills-employee" role="tab" aria-controls="v-pills-employee" aria-selected="false">
<i class="ri-group-line"></i>
<span class="font-weight-bold">{{trans('global.employees')}}</span>
</a>
<a class="d-none hide nav-link mb-3 p-3" id="v-pills-norms-tab" data-toggle="pill" href="#v-pills-norms" role="tab" aria-controls="v-pills-norms" aria-selected="false">
<i class="ri-task-line"></i>
<span class="font-weight-bold">{{trans('global.standards')}}</span>
</a>
<a class="d-none hide nav-link mb-3 p-3" id="v-pills-packs-tab" data-toggle="pill" href="#v-pills-packs" role="tab" aria-controls="v-pills-packs" aria-selected="false">
<i class="ri-archive-line"></i>
<span class="font-weight-bold">{{trans('global.packs')}}</span>
</a>
</div>
</div>
<div class="col-md-10 col-sm-9">
<!-- Tabs content -->
<div class="card mt-0">
<div class="card-body">
<div class="tab-content" id="v-pills-tabContent">
<div class="tab-pane fade rounded " id="v-pills-client" role="tabpanel" aria-labelledby="v-pills-client-tab">
<div class="filter_area">
<div class="row align-items-center">
<div class="col-sm-6">
<h4 class="sub-title mb-0"><i class="ri-list-check-2"></i> {{ trans('global.all') }} {{ trans('global.projects') }} <small></small></h4>
</div>
</div>
</div>
<div class="row">
@include('layouts/notification')
<div class="table-responsive">
<table class="table table-striped table-hover datatable_no_btn __datatable-Permission " style="width:100%;">
<thead>
<tr>
<th>Client Name</th>
<th style="min-width:120px">Company Name</th>
<th style="min-width:70px" class="sorting-none">Email</th>
<th style="min-width:70px" class="sorting-none">Contact</th>
<th class="text-center sorting-none"> </th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<div class="tab-pane fade rounded show active" id="v-pills-employee" role="tabpanel" aria-labelledby="v-pills-employee-tab">
<div class="filter_area">
<div class="row align-items-center">
<div class="col-sm-6">
<h4 class="sub-title mb-0"><i class="ri-list-check-2"></i> {{ trans('global.all') }} {{ trans('global.employees') }} <small></small></h4>
</div>
@can('employees_create')
<div class="col-sm-6 text-right action-icon">
<a class="btn btn-primary btn-circle waves-effect waves-ripple tooltip1" href='{{ route("admin.employees.create") }}?user_id={{$user->id}}'>
<i class="ri-add-line"></i>
<span class="tooltiptext">{{ trans('global.add') }} {{ trans('global.employee') }}</span>
</a>
</div>
@endcan
</div>
</div>
<div class="row">
@include('layouts/notification')
<div class="table-responsive">
<table class="table table-striped table-hover datatable_no_btn __datatable-Permission " style="width:100%;">
<thead>
<tr>
<th>Name</th>
<th >Role</th>
<th class="sorting-none">Email</th>
<th class="sorting-none">Contact</th>
<th class="text-center sorting-none"> </th>
</tr>
</thead>
<tbody>
<?php $count = 0; ?>
@foreach($employees as $key => $user)
<?php $count++; ?>
<tr data-entry-id="{{ $user->id }}">
<td>{{ $user->name }}</td>
<td>
@foreach($user->roles as $key => $item)
<span class="badge badge-info">{{ $item->title }}</span>
@endforeach
</td>
<td>{{ $user->email }}</td>
<td>{{ $user->contact_no }}</td>
<td class="text-center icon-group">
@can('employees_edit')
<a class="btn btn-link" href="{{ route('admin.employees.employees_setting', $user->id) }}"><i class="ri-settings-3-line"></i></a>
@endcan
@can('employees_create')
<a class="btn btn-link" href="{{ route('admin.employees.show', $user->id) }}"><i class="fas fa-eye"></i></a>
@endcan
@can('employees_edit')
<a class="btn btn-link" href="{{ route('admin.employees.edit', [$user->id]) }}"><i class="ri-pencil-line"></i></a>
@endcan
@can('employees_delete')
<form action="{{ route('admin.employees.destroy', [$user->id]) }}" method="POST" style="display: inline-block;">
<input type="hidden" name="_method" value="DELETE">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<button type="button" class="btn btn-link" onclick="confirmdelet('{{$user->id}}');"><i class="ri-delete-bin-6-line"></i></button>
<button type="submit" class="btn btn-link d-none delete_button_{{$user->id}}" ><i class="ri-delete-bin-6-line"></i></button>
</form>
@endcan
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<div class="tab-pane fade rounded" id="v-pills-norms" role="tabpanel" aria-labelledby="v-pills-norms-tab">
<div class="filter_area">
<div class="row align-items-center">
<div class="col-sm-6">
<h4 class="sub-title mb-0"><i class="ri-list-check-2"></i> {{ trans('global.all') }} {{ trans('global.norms') }} <small></small></h4>
</div>
</div>
</div>
<div class="row">
@include('layouts/notification')
<div class="table-responsive">
<table class="table table-striped table-hover datatable_no_btn __datatable-Permission " style="width:100%;">
<thead>
<tr>
<th>Name</th>
<th style="min-width:120px">Type</th>
<th style="min-width:70px" class="sorting-none">Risk</th>
<th style="min-width:70px" class="sorting-none">Asset</th>
<th style="min-width:70px" class="sorting-none">Business</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<div class="tab-pane fade rounded" id="v-pills-packs" role="tabpanel" aria-labelledby="v-pills-packs-tab">
<div class="filter_area">
<div class="row align-items-center">
<div class="col-sm-6">
<h4 class="sub-title mb-0"><i class="ri-list-check-2"></i> {{ trans('global.all') }} {{ trans('global.packs') }} <small></small></h4>
</div>
</div>
</div>
<div class="row">
@include('layouts/notification')
<div class="table-responsive">
<table class="table table-striped table-hover datatable_no_btn __datatable-Permission " style="width:100%;">
<thead>
<tr>
<th>Name</th>
<th style="min-width:120px">Number of Company</th>
<th style="min-width:70px" class="sorting-none">Number of User</th>
<th style="min-width:70px" class="sorting-none">Number of Standards</th>
<th style="min-width:70px" class="sorting-none">Price</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('scripts')
@parent
<script>
</script>
@endsection