resolutionbasis crud done

This commit is contained in:
ilmedova 2022-11-23 02:42:32 +05:00
parent afc77bb994
commit 9f1b6bbaf5
3 changed files with 20 additions and 10 deletions

View File

@ -14,7 +14,6 @@
class ResolutionbasisCrudController extends CrudController
{
use \Backpack\CRUD\app\Http\Controllers\Operations\ListOperation;
use \Backpack\CRUD\app\Http\Controllers\Operations\CreateOperation;
use \Backpack\CRUD\app\Http\Controllers\Operations\UpdateOperation;
use \Backpack\CRUD\app\Http\Controllers\Operations\DeleteOperation;
use \Backpack\CRUD\app\Http\Controllers\Operations\ShowOperation;
@ -45,6 +44,22 @@ protected function setupListOperation()
'type' => 'text',
'label' => 'Contract'
],
[
'name' => 'department_id',
'type' => 'select',
'label' => 'Department',
'entity' => 'department',
'attribute' => 'title',
'model' => 'App\Models\Department'
],
[
'name' => 'resolution_id',
'type' => 'select',
'label' => 'Resolution',
'entity' => 'resolution',
'attribute' => 'title',
'model' => 'App\Models\Resolution'
],
[
'name' => 'resolutionbasis',
'type' => 'text',
@ -69,8 +84,6 @@ protected function setupCreateOperation()
{
CRUD::setValidation(ResolutionbasisRequest::class);
/**
* Fields can be defined using the fluent syntax or array syntax:
* - CRUD::field('price')->type('number');

View File

@ -11,21 +11,21 @@
<h6><strong>{{ $account->profile->surname ?? null }}</strong></h6>
</div>
<div class="form-group">
<label for="company"><small>Patronomic</small></label>
<label for="company"><small>{{ trans('app.business.patronomic_name') }}</small></label>
<h6><strong>{{ $account->profile->patronomic_name ?? null }}</strong></h6>
</div>
@if (isset($account->profile->date_of_birth))
<div class="form-group">
<label for="company"><small>Date of birth</small></label>
<label for="company"><small>{{ trans('app.business.date_of_birth') }}</small></label>
<h6><strong>{{ Carbon\Carbon::parse($account->profile->date_of_birth)->format('d.m.Y') }}</strong>
</h6>
</div>
@endif
<div class="form-group">
<label for="company"><small>Birthplace</small></label>
<label for="company"><small>{{ trans('app.business.birth_place') }}</small></label>
<h6><strong>{{ $account->profile->birth_place ?? null }}</strong></h6>
</div>
<div class="form-group">
<label for="company"><small>Registration address</small></label>
<label for="company"><small>{{ trans('app.company.registration_address') }}</small></label>
<h6><strong>{{ $account->profile->registration_address ?? null }}</strong></h6>
</div>

View File

@ -199,9 +199,6 @@ class="bi bi-ticket-perforated" viewBox="0 0 16 16">
</form>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" type="button" data-dismiss="modal">{{ trans('app.last_updates.save') }}</button>
</div>
</div>
<!-- /.modal-content-->
</div>