IMMREX7
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
function checkActive($path, $active = 'active') {
if (is_string($path)) {
return request()->is($path) ? $active : '';
}
foreach ($path as $str) {
if (checkActive($str) == $active)
return $active;
}
}
function getCompanies(){
$compnies = [''=>'---Select---'] + \App\Company::get()->pluck('companyName','idCompany')->toArray();
return $compnies;
}
Copyright © 2021 -