migrations fix

This commit is contained in:
merdan 2022-11-22 11:24:21 +05:00
parent 8b69445e99
commit 23a19d5f68
2 changed files with 0 additions and 12 deletions

View File

@ -40,17 +40,6 @@ public function preview(){
' . trans('app.last_updates.preview') . '</a>';
}
public function accept(){
if($this->state == 'applied' && $this->accepted_by == null){
return '<a class="btn btn-sm btn-link" href="'. backpack_url('accept/'.$this->id) .'" data-toggle="tooltip">
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" fill="currentColor" class="bi bi-check-square" viewBox="0 0 16 16">
<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
<path d="M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.235.235 0 0 1 .02-.022z"/>
</svg>
'. trans('app.last_updates.accept') . '</a>';
}
}
/*
|--------------------------------------------------------------------------
| RELATIONS

View File

@ -49,7 +49,6 @@
Route::get('/create-account-client/{id}', [ResourceController::class, 'createAccountClient']);
Route::post('/client/custom-create', [ResourceController::class, 'createClient']);
Route::crud('contract', 'ContractCrudController');
Route::get('/accept/{id}', [ApplicationController::class, 'accept']);
Route::get('application/accept/{id}', [ApplicationCrudController::class, 'accept'])->name('accepted_application');
Route::crud('department', 'DepartmentCrudController');
Route::crud('resolution', 'ResolutionCrudController');