git add .

git commit "fix(assets): self-host Chart.js instead of loading from CDN"
This commit is contained in:
2026-08-19 17:03:59 +03:30
parent dfe848c69e
commit 3f46f6356a
15 changed files with 795 additions and 130 deletions
@@ -28,14 +28,21 @@ class DashboardController extends Controller
->orderBy('date')
->get();
$flightViews=Flight::query()
->selectRaw('DATE(created_at) as date,SUM(views) as total')
->where('created_at','>=',now()->subDays(9))
->groupBy('date')
->orderBy('date')
->get();
$logs = ActivityLog::with('admin')
->latest()
->take(5)
->get();
return view('admin.dashboard',compact('adminsCount',
'usersCount','toursCount','flightsCount','tourViews'
,'logs'
'usersCount','toursCount','flightsCount','tourViews',
'flightViews','logs'
));
}
}
@@ -0,0 +1,29 @@
<?php
namespace App\Http\Requests\Admin;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class CityStoreRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return false;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
//
];
}
}
@@ -0,0 +1,29 @@
<?php
namespace App\Http\Requests\Admin;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class ProvinceStoreRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return false;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
//
];
}
}