run through pint
This commit is contained in:
@@ -2,15 +2,12 @@
|
|||||||
|
|
||||||
namespace App\Nova\Dashboards;
|
namespace App\Nova\Dashboards;
|
||||||
|
|
||||||
use Laravel\Nova\Cards\Help;
|
|
||||||
use Laravel\Nova\Dashboards\Main as Dashboard;
|
use Laravel\Nova\Dashboards\Main as Dashboard;
|
||||||
|
|
||||||
class Main extends Dashboard
|
class Main extends Dashboard
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Get the displayable name of the dashboard.
|
* Get the displayable name of the dashboard.
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
*/
|
||||||
public function name(): string
|
public function name(): string
|
||||||
{
|
{
|
||||||
@@ -19,8 +16,6 @@ class Main extends Dashboard
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the cards for the dashboard.
|
* Get the cards for the dashboard.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function cards(): array
|
public function cards(): array
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ use App\Repos\Order\Loan\LoanTypeRepo;
|
|||||||
use App\Repos\Order\OrderRepo;
|
use App\Repos\Order\OrderRepo;
|
||||||
use App\Repos\System\Settings\Legal\EducationRepo;
|
use App\Repos\System\Settings\Legal\EducationRepo;
|
||||||
use App\Repos\System\Settings\Legal\MarriageRepo;
|
use App\Repos\System\Settings\Legal\MarriageRepo;
|
||||||
use App\Repos\System\Settings\Legal\PassportRepo;
|
|
||||||
use App\Repos\System\Settings\Location\RegionRepo;
|
use App\Repos\System\Settings\Location\RegionRepo;
|
||||||
use Laravel\Nova\Fields\Badge;
|
use Laravel\Nova\Fields\Badge;
|
||||||
use Laravel\Nova\Fields\BelongsTo;
|
use Laravel\Nova\Fields\BelongsTo;
|
||||||
@@ -16,7 +15,6 @@ use Laravel\Nova\Fields\Date;
|
|||||||
use Laravel\Nova\Fields\Email;
|
use Laravel\Nova\Fields\Email;
|
||||||
use Laravel\Nova\Fields\ID;
|
use Laravel\Nova\Fields\ID;
|
||||||
use Laravel\Nova\Fields\Image;
|
use Laravel\Nova\Fields\Image;
|
||||||
use Laravel\Nova\Fields\Number;
|
|
||||||
use Laravel\Nova\Fields\Select;
|
use Laravel\Nova\Fields\Select;
|
||||||
use Laravel\Nova\Fields\Text;
|
use Laravel\Nova\Fields\Text;
|
||||||
use Laravel\Nova\Panel;
|
use Laravel\Nova\Panel;
|
||||||
@@ -30,7 +28,8 @@ class LoanOrderFieldsForDetail
|
|||||||
public static function make(): array
|
public static function make(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
ID::make()->sortable(),
|
ID::make()->hide(),
|
||||||
|
Text::make(__('ID'), 'unique_id'),
|
||||||
|
|
||||||
Badge::make(__('Status'), 'status')
|
Badge::make(__('Status'), 'status')
|
||||||
->map(OrderRepo::statusClasses())
|
->map(OrderRepo::statusClasses())
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ use App\Nova\Resources\System\Roles\Role;
|
|||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Validation\Rules;
|
use Illuminate\Validation\Rules;
|
||||||
use Laravel\Nova\Fields\ID;
|
use Laravel\Nova\Fields\ID;
|
||||||
use Laravel\Nova\Fields\MorphMany;
|
|
||||||
use Laravel\Nova\Fields\MorphToMany;
|
use Laravel\Nova\Fields\MorphToMany;
|
||||||
use Laravel\Nova\Fields\Password;
|
use Laravel\Nova\Fields\Password;
|
||||||
use Laravel\Nova\Fields\Text;
|
use Laravel\Nova\Fields\Text;
|
||||||
@@ -46,7 +45,7 @@ class User extends Resource
|
|||||||
public static function indexQuery(NovaRequest $request, $query)
|
public static function indexQuery(NovaRequest $request, $query)
|
||||||
{
|
{
|
||||||
$query->where('email', '!=', 'nurmuhammet@mail.com')
|
$query->where('email', '!=', 'nurmuhammet@mail.com')
|
||||||
->where('email', '!=', 'mahmyt1206@gmail.com');
|
->where('email', '!=', 'mahmyt1206@gmail.com');
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
@@ -69,8 +68,6 @@ class User extends Resource
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the fields displayed by the resource.
|
* Get the fields displayed by the resource.
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function fields(NovaRequest $request): array
|
public function fields(NovaRequest $request): array
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ namespace App\Policies\Branch;
|
|||||||
|
|
||||||
use App\Models\Branch\Branch;
|
use App\Models\Branch\Branch;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Illuminate\Auth\Access\Response;
|
|
||||||
|
|
||||||
class BranchPolicy
|
class BranchPolicy
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ namespace App\Policies\Order\Loan;
|
|||||||
|
|
||||||
use App\Models\Order\Loan\LoanOrder;
|
use App\Models\Order\Loan\LoanOrder;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Illuminate\Auth\Access\Response;
|
|
||||||
|
|
||||||
class LoanOrderPolicy
|
class LoanOrderPolicy
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ namespace App\Policies\Order\Loan;
|
|||||||
|
|
||||||
use App\Models\Order\Loan\LoanType;
|
use App\Models\Order\Loan\LoanType;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Illuminate\Auth\Access\Response;
|
|
||||||
|
|
||||||
class LoanTypePolicy
|
class LoanTypePolicy
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ namespace App\Policies\System\Location;
|
|||||||
|
|
||||||
use App\Models\System\Location\Province;
|
use App\Models\System\Location\Province;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Illuminate\Auth\Access\Response;
|
|
||||||
|
|
||||||
class ProvincePolicy
|
class ProvincePolicy
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ namespace App\Policies\System\Roles;
|
|||||||
|
|
||||||
use App\Models\System\Roles\Permission;
|
use App\Models\System\Roles\Permission;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Illuminate\Auth\Access\Response;
|
|
||||||
|
|
||||||
class PermissionPolicy
|
class PermissionPolicy
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ namespace App\Policies\System\Roles;
|
|||||||
|
|
||||||
use App\Models\System\Roles\Role;
|
use App\Models\System\Roles\Role;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Illuminate\Auth\Access\Response;
|
|
||||||
|
|
||||||
class RolePolicy
|
class RolePolicy
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
namespace App\Policies;
|
namespace App\Policies;
|
||||||
|
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Illuminate\Auth\Access\Response;
|
|
||||||
|
|
||||||
class UserPolicy
|
class UserPolicy
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ use Illuminate\Http\Request;
|
|||||||
use Illuminate\Support\Facades\Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Laravel\Nova\Events\ServingNova;
|
use Laravel\Nova\Events\ServingNova;
|
||||||
use Laravel\Nova\Fields\Date;
|
use Laravel\Nova\Fields\Date;
|
||||||
use Laravel\Nova\Fields\Field;
|
|
||||||
use Laravel\Nova\Menu\Menu;
|
use Laravel\Nova\Menu\Menu;
|
||||||
use Laravel\Nova\Menu\MenuGroup;
|
use Laravel\Nova\Menu\MenuGroup;
|
||||||
use Laravel\Nova\Menu\MenuItem;
|
use Laravel\Nova\Menu\MenuItem;
|
||||||
|
|||||||
2
lang/vendor/nova/tk.json
vendored
2
lang/vendor/nova/tk.json
vendored
@@ -198,7 +198,7 @@
|
|||||||
"Hong Kong": "Gonkong",
|
"Hong Kong": "Gonkong",
|
||||||
"Hungary": "Wengriýa",
|
"Hungary": "Wengriýa",
|
||||||
"Iceland": "Islandiýa",
|
"Iceland": "Islandiýa",
|
||||||
"ID": "Şahsyýetnamasy",
|
"ID": "ID",
|
||||||
"If you did not request a password reset, no further action is required.": "Paroly täzeden dikeltmegi talap etmedik bolsaňyz, mundan başga çäre görülmeli däl.",
|
"If you did not request a password reset, no further action is required.": "Paroly täzeden dikeltmegi talap etmedik bolsaňyz, mundan başga çäre görülmeli däl.",
|
||||||
"Impersonate": "Özüňi görkezmek",
|
"Impersonate": "Özüňi görkezmek",
|
||||||
"Increase": "Köpeltmek",
|
"Increase": "Köpeltmek",
|
||||||
|
|||||||
Reference in New Issue
Block a user