create and fix code
This commit is contained in:
@@ -6,6 +6,7 @@ use Illuminate\Database\Eloquent\Casts\Attribute;
|
|||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||||
|
use Illuminate\Database\Eloquent\Relations\HasOne;
|
||||||
use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
||||||
|
|
||||||
class Mission extends Model
|
class Mission extends Model
|
||||||
@@ -34,14 +35,14 @@ class Mission extends Model
|
|||||||
return $this->hasMany(MissionHistory::class);
|
return $this->hasMany(MissionHistory::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function roadItems(): MorphToMany
|
public function roadPatrol(): HasOne
|
||||||
{
|
{
|
||||||
return $this->morphedByMany(RoadItemsProject::class, 'missionable');
|
return $this->hasOne(RoadPatrol::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function roadPatrols(): MorphToMany
|
public function roadItems(): HasMany
|
||||||
{
|
{
|
||||||
return $this->morphedByMany(RoadPatrol::class, 'missionable');
|
return $this->hasMany(RoadItemsProject::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function roadObserveds(): MorphToMany
|
public function roadObserveds(): MorphToMany
|
||||||
|
|||||||
@@ -3,11 +3,10 @@
|
|||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
use Illuminate\Database\Eloquent\Relations\HasOne;
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
||||||
use Illuminate\Http\UploadedFile;
|
use Illuminate\Http\UploadedFile;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|
||||||
|
|
||||||
class RoadItemsProject extends Model
|
class RoadItemsProject extends Model
|
||||||
{
|
{
|
||||||
@@ -188,13 +187,8 @@ class RoadItemsProject extends Model
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function missions(): MorphToMany
|
public function mission(): BelongsTo
|
||||||
{
|
{
|
||||||
return $this->morphToMany(Mission::class,
|
return $this->belongsTo(Mission::class);
|
||||||
'missionable',
|
|
||||||
'missionables',
|
|
||||||
'missionable_id',
|
|
||||||
'mission_id',
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ namespace App\Models;
|
|||||||
|
|
||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||||
use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
||||||
use Illuminate\Database\Eloquent\Casts\Attribute;
|
use Illuminate\Database\Eloquent\Casts\Attribute;
|
||||||
@@ -46,13 +47,8 @@ class RoadPatrol extends Model
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function missions(): MorphToMany
|
public function mission(): BelongsTo
|
||||||
{
|
{
|
||||||
return $this->morphToMany(Mission::class,
|
return $this->belongsTo(Mission::class);
|
||||||
'missionable',
|
|
||||||
'missionables',
|
|
||||||
'missionable_id',
|
|
||||||
'mission_id',
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ class OperatorService
|
|||||||
public function dataTable(Request $request, $loadRelations = false)
|
public function dataTable(Request $request, $loadRelations = false)
|
||||||
{
|
{
|
||||||
$query = RoadItemsProject::query()
|
$query = RoadItemsProject::query()
|
||||||
|
->with('mission:id')
|
||||||
->where('is_new', '=', 1)
|
->where('is_new', '=', 1)
|
||||||
->where('user_id', '=', auth()->user()->id)
|
->where('user_id', '=', auth()->user()->id);
|
||||||
->when($loadRelations, fn ($query) => $query->with(['rahdaran:id,name,code', 'cmmsMachines:id,machine_code,car_name,plak_number']));
|
|
||||||
|
|
||||||
return DataTableFacade::run(
|
return DataTableFacade::run(
|
||||||
$query,
|
$query,
|
||||||
@@ -23,7 +23,8 @@ class OperatorService
|
|||||||
allowedSelects: [
|
allowedSelects: [
|
||||||
'id', 'province_fa', 'edarat_name', 'supervisor_description', 'item', 'item_fa',
|
'id', 'province_fa', 'edarat_name', 'supervisor_description', 'item', 'item_fa',
|
||||||
'sub_item', 'sub_item_fa', 'sub_item_data', 'unit_fa', 'start_lat', 'start_lng',
|
'sub_item', 'sub_item_fa', 'sub_item_data', 'unit_fa', 'start_lat', 'start_lng',
|
||||||
'end_lat', 'end_lng', 'activity_date_time', 'created_at', 'status_fa', 'status'
|
'end_lat', 'end_lng', 'activity_date_time', 'created_at', 'status_fa', 'status',
|
||||||
|
'mission_id'
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,15 +20,15 @@ class SupervisorService
|
|||||||
|
|
||||||
if ($user->hasPermissionTo('show-road-item-supervise-cartable')) {
|
if ($user->hasPermissionTo('show-road-item-supervise-cartable')) {
|
||||||
$query = RoadItemsProject::query()
|
$query = RoadItemsProject::query()
|
||||||
->where('is_new', 1)
|
->with('mission:id')
|
||||||
->when($loadRelations, fn ($query) => $query->with(['rahdaran:id,name,code', 'cmmsMachines:id,machine_code,car_name,plak_number']));
|
->where('is_new', 1);
|
||||||
}
|
}
|
||||||
elseif ($user->hasPermissionTo('show-road-item-supervise-cartable-province')) {
|
elseif ($user->hasPermissionTo('show-road-item-supervise-cartable-province')) {
|
||||||
throw_if(is_null($user->province_id), new ProhibitedAction('استانی برای شما در سامانه ثبت نشده است!'));
|
throw_if(is_null($user->province_id), new ProhibitedAction('استانی برای شما در سامانه ثبت نشده است!'));
|
||||||
$query = RoadItemsProject::query()
|
$query = RoadItemsProject::query()
|
||||||
|
->with('mission:id')
|
||||||
->where('is_new', 1)
|
->where('is_new', 1)
|
||||||
->where('province_id', auth()->user()->province_id)
|
->where('province_id', auth()->user()->province_id);
|
||||||
->when($loadRelations, fn ($query) => $query->with(['rahdaran:id,name,code', 'cmmsMachines:id,machine_code,car_name,plak_number']));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return DataTableFacade::run(
|
return DataTableFacade::run(
|
||||||
@@ -39,7 +39,8 @@ class SupervisorService
|
|||||||
allowedSelects: [
|
allowedSelects: [
|
||||||
'id', 'province_fa', 'edarat_name', 'item', 'item_fa', 'sub_item',
|
'id', 'province_fa', 'edarat_name', 'item', 'item_fa', 'sub_item',
|
||||||
'sub_item_fa', 'sub_item_data', 'unit_fa', 'start_lat', 'start_lng',
|
'sub_item_fa', 'sub_item_data', 'unit_fa', 'start_lat', 'start_lng',
|
||||||
'end_lat', 'end_lng', 'activity_date_time', 'created_at', 'status_fa', 'status'
|
'end_lat', 'end_lng', 'activity_date_time', 'created_at', 'status_fa',
|
||||||
|
'status', 'mission_id'
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ class OperatorService
|
|||||||
public function dataTable(Request $request, $loadRelations = false)
|
public function dataTable(Request $request, $loadRelations = false)
|
||||||
{
|
{
|
||||||
$query = RoadPatrol::query()
|
$query = RoadPatrol::query()
|
||||||
->where('operator_id', '=', auth()->user()->id)
|
->with('mission:id')
|
||||||
->when($loadRelations, fn ($query) => $query->with(['rahdaran:id,name,code', 'cmmsMachines:id,machine_code,car_name,plak_number']));
|
->where('operator_id', '=', auth()->user()->id);
|
||||||
|
|
||||||
return DataTableFacade::run(
|
return DataTableFacade::run(
|
||||||
$query,
|
$query,
|
||||||
@@ -23,7 +23,7 @@ class OperatorService
|
|||||||
allowedSelects: [
|
allowedSelects: [
|
||||||
'province_fa', 'province_id', 'id', 'edare_id', 'edare_name',
|
'province_fa', 'province_id', 'id', 'edare_id', 'edare_name',
|
||||||
'start_time', 'end_time', 'created_at', 'description',
|
'start_time', 'end_time', 'created_at', 'description',
|
||||||
'distance', 'vehicle_runtime', 'fuel_consumption', 'stop_points'
|
'distance', 'vehicle_runtime', 'fuel_consumption', 'stop_points', 'mission_id'
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class SupervisorService
|
|||||||
|
|
||||||
if ($user->hasPermissionTo('show-road-patrol-supervise-cartable')) {
|
if ($user->hasPermissionTo('show-road-patrol-supervise-cartable')) {
|
||||||
$query = RoadPatrol::query()
|
$query = RoadPatrol::query()
|
||||||
->when($loadRelations, fn ($query) => $query->with(['rahdaran:id,name,code', 'cmmsMachines:id,machine_code,car_name,plak_number']));
|
->with('mission:id');
|
||||||
}
|
}
|
||||||
elseif ($user->hasPermissionTo('show-road-patrol-supervise-cartable-province'))
|
elseif ($user->hasPermissionTo('show-road-patrol-supervise-cartable-province'))
|
||||||
{
|
{
|
||||||
@@ -29,7 +29,7 @@ class SupervisorService
|
|||||||
|
|
||||||
$query = RoadPatrol::query()
|
$query = RoadPatrol::query()
|
||||||
->where('province_id', '=', $user->province_id)
|
->where('province_id', '=', $user->province_id)
|
||||||
->when($loadRelations, fn ($query) => $query->with(['rahdaran:id,name,code', 'cmmsMachines:id,machine_code,car_name,plak_number']));
|
->with('mission:id');
|
||||||
}
|
}
|
||||||
|
|
||||||
return DataTableFacade::run(
|
return DataTableFacade::run(
|
||||||
@@ -40,7 +40,8 @@ class SupervisorService
|
|||||||
allowedSelects: [
|
allowedSelects: [
|
||||||
'province_fa', 'province_id', 'id', 'edare_id', 'edare_name',
|
'province_fa', 'province_id', 'id', 'edare_id', 'edare_name',
|
||||||
'start_time', 'end_time', 'created_at', 'description',
|
'start_time', 'end_time', 'created_at', 'description',
|
||||||
'distance', 'vehicle_runtime', 'fuel_consumption', 'stop_points'
|
'distance', 'vehicle_runtime', 'fuel_consumption', 'stop_points',
|
||||||
|
'mission_id'
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('road_patrols', function (Blueprint $table) {
|
||||||
|
$table->foreignId('mission_id')->nullable()->constrained('missions');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('road_patrols', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('mission_id');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('road_items_projects', function (Blueprint $table) {
|
||||||
|
$table->foreignId('v')->nullable()->constrained('missions');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('road_items_projects', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('mission_id');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -21,18 +21,18 @@
|
|||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="14"
|
<th colspan="13"
|
||||||
style="background-color: #DAEEF3;text-align: center;border-right: 1px solid black;font-weight:bolder;">
|
style="background-color: #DAEEF3;text-align: center;border-right: 1px solid black;font-weight:bolder;">
|
||||||
تاریخ دریافت گزارش: {{ verta()->now()->format('Y/m/d H:i') }}
|
تاریخ دریافت گزارش: {{ verta()->now()->format('Y/m/d H:i') }}
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="14"
|
<th colspan="13"
|
||||||
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;">
|
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;">
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="14"
|
<th colspan="13"
|
||||||
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;font-size: 13px;">
|
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;font-size: 13px;">
|
||||||
گزارش کارتابل عملیات فعالیت های روزانه و جاری
|
گزارش کارتابل عملیات فعالیت های روزانه و جاری
|
||||||
</th>
|
</th>
|
||||||
@@ -60,10 +60,7 @@
|
|||||||
مقدار</th>
|
مقدار</th>
|
||||||
<th rowspan="1"
|
<th rowspan="1"
|
||||||
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
||||||
کد خودرو(ها)</th>
|
کد ماموریت</th>
|
||||||
<th rowspan="1"
|
|
||||||
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
|
||||||
کد راهدار(ها)</th>
|
|
||||||
<th rowspan="1"
|
<th rowspan="1"
|
||||||
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
||||||
نقطه شروع</th>
|
نقطه شروع</th>
|
||||||
@@ -97,8 +94,7 @@
|
|||||||
<td style="border: 1px solid black;text-align: center;">
|
<td style="border: 1px solid black;text-align: center;">
|
||||||
{{ $item['sub_item_data'] ? ($item['unit_fa'] ? $item['sub_item_data'] . '(' . $item['unit_fa'] . ')' : $item['sub_item_data'] . '(-)') : '-' }}
|
{{ $item['sub_item_data'] ? ($item['unit_fa'] ? $item['sub_item_data'] . '(' . $item['unit_fa'] . ')' : $item['sub_item_data'] . '(-)') : '-' }}
|
||||||
</td>
|
</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['cmmsMachines'] != null ? $item['cmmsMachines']->pluck('machine_code')->implode(', ') : '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['mission_id'] ?? '-' }}</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['rahdaran'] != null ? $item['rahdaran']->pluck('code')->implode(', ') : '-' }}</td>
|
|
||||||
<td style="border: 1px solid black;text-align: center;">
|
<td style="border: 1px solid black;text-align: center;">
|
||||||
{{ isset($item['start_lat']) && isset($item['start_lng']) ? $item['start_lat'] . ' ' . $item['start_lng'] : '-' }}
|
{{ isset($item['start_lat']) && isset($item['start_lng']) ? $item['start_lat'] . ' ' . $item['start_lng'] : '-' }}
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -21,18 +21,18 @@
|
|||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="14"
|
<th colspan="13"
|
||||||
style="background-color: #DAEEF3;text-align: center;border-right: 1px solid black;font-weight:bolder;">
|
style="background-color: #DAEEF3;text-align: center;border-right: 1px solid black;font-weight:bolder;">
|
||||||
تاریخ دریافت گزارش: {{ verta()->now()->format('Y/m/d H:i') }}
|
تاریخ دریافت گزارش: {{ verta()->now()->format('Y/m/d H:i') }}
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="14"
|
<th colspan="13"
|
||||||
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;">
|
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;">
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="14"
|
<th colspan="13"
|
||||||
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;font-size: 13px;">
|
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;font-size: 13px;">
|
||||||
گزارش کارتابل ارزیابی فعالیت های روزانه و جاری
|
گزارش کارتابل ارزیابی فعالیت های روزانه و جاری
|
||||||
</th>
|
</th>
|
||||||
@@ -60,10 +60,7 @@
|
|||||||
مقدار</th>
|
مقدار</th>
|
||||||
<th rowspan="1"
|
<th rowspan="1"
|
||||||
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
||||||
کد خودرو(ها)</th>
|
کد ماموریت</th>
|
||||||
<th rowspan="1"
|
|
||||||
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
|
||||||
کد راهدار(ها)</th>
|
|
||||||
<th rowspan="1"
|
<th rowspan="1"
|
||||||
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
||||||
نقطه شروع</th>
|
نقطه شروع</th>
|
||||||
@@ -97,8 +94,7 @@
|
|||||||
<td style="border: 1px solid black;text-align: center;">
|
<td style="border: 1px solid black;text-align: center;">
|
||||||
{{ $item['sub_item_data'] ? ($item['unit_fa'] ? $item['sub_item_data'] . '(' . $item['unit_fa'] . ')' : $item['sub_item_data'] . '(-)') : '-' }}
|
{{ $item['sub_item_data'] ? ($item['unit_fa'] ? $item['sub_item_data'] . '(' . $item['unit_fa'] . ')' : $item['sub_item_data'] . '(-)') : '-' }}
|
||||||
</td>
|
</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['cmmsMachines'] != null ? $item['cmmsMachines']->pluck('machine_code')->implode(', ') : '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['mission_id'] ?? '-' }}</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['rahdaran'] != null ? $item['rahdaran']->pluck('code')->implode(', ') : '-' }}</td>
|
|
||||||
<td style="border: 1px solid black;text-align: center;">
|
<td style="border: 1px solid black;text-align: center;">
|
||||||
{{ isset($item['start_lat']) && isset($item['start_lng']) ? $item['start_lat'] . ' ' . $item['start_lng'] : '-' }}
|
{{ isset($item['start_lat']) && isset($item['start_lng']) ? $item['start_lat'] . ' ' . $item['start_lng'] : '-' }}
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -21,18 +21,18 @@
|
|||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="14"
|
<th colspan="8"
|
||||||
style="background-color: #DAEEF3;text-align: center;border-right: 1px solid black;font-weight:bolder;">
|
style="background-color: #DAEEF3;text-align: center;border-right: 1px solid black;font-weight:bolder;">
|
||||||
تاریخ دریافت گزارش: {{ verta()->now()->format('Y/m/d H:i') }}
|
تاریخ دریافت گزارش: {{ verta()->now()->format('Y/m/d H:i') }}
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="14"
|
<th colspan="8"
|
||||||
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;">
|
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;">
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="14"
|
<th colspan="8"
|
||||||
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;font-size: 13;">
|
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;font-size: 13;">
|
||||||
گزارش کارتابل عملیات گشت راهداری
|
گزارش کارتابل عملیات گشت راهداری
|
||||||
</th>
|
</th>
|
||||||
@@ -49,10 +49,7 @@
|
|||||||
اداره</th>
|
اداره</th>
|
||||||
<th rowspan="1"
|
<th rowspan="1"
|
||||||
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
||||||
کد خودرو(ها)</th>
|
کد ماموریت</th>
|
||||||
<th rowspan="1"
|
|
||||||
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
|
||||||
کد راهدار(ها)</th>
|
|
||||||
<th rowspan="1"
|
<th rowspan="1"
|
||||||
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
||||||
تاریخ شروع</th>
|
تاریخ شروع</th>
|
||||||
@@ -74,8 +71,7 @@
|
|||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['id'] ?? '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['id'] ?? '-' }}</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['province_fa'] ?? '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['province_fa'] ?? '-' }}</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['edare_name'] ?? '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['edare_name'] ?? '-' }}</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['cmmsMachines'] != null ? $item['cmmsMachines']->pluck('machine_code')->implode(', ') : '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['mission_id'] ?? '-' }}</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['rahdaran'] != null ? $item['rahdaran']->pluck('code')->implode(', ') : '-' }}</td>
|
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['start_time'] ? verta($item['start_time'])->format('Y/n/j H:i:s') : '-' }}
|
<td style="border: 1px solid black;text-align: center;">{{ $item['start_time'] ? verta($item['start_time'])->format('Y/n/j H:i:s') : '-' }}
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['end_time'] ? verta($item['end_time'])->format('Y/n/j H:i:s') : '-' }}
|
<td style="border: 1px solid black;text-align: center;">{{ $item['end_time'] ? verta($item['end_time'])->format('Y/n/j H:i:s') : '-' }}
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['created_at'] ? verta($item['created_at'])->format('Y/n/j H:i:s') : '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['created_at'] ? verta($item['created_at'])->format('Y/n/j H:i:s') : '-' }}</td>
|
||||||
|
|||||||
@@ -21,18 +21,18 @@
|
|||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="9"
|
<th colspan="8"
|
||||||
style="background-color: #DAEEF3;text-align: center;border-right: 1px solid black;font-weight:bolder;">
|
style="background-color: #DAEEF3;text-align: center;border-right: 1px solid black;font-weight:bolder;">
|
||||||
تاریخ دریافت گزارش: {{ verta()->now()->format('Y/m/d H:i') }}
|
تاریخ دریافت گزارش: {{ verta()->now()->format('Y/m/d H:i') }}
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="9"
|
<th colspan="8"
|
||||||
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;">
|
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;">
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="9"
|
<th colspan="8"
|
||||||
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;font-size: 13px;">
|
style="background-color: #DAEEF3;text-align: center;border-right:1px solid black;font-weight:bolder;font-size: 13px;">
|
||||||
گزارش کارتابل ارزیابی گشت راهداری
|
گزارش کارتابل ارزیابی گشت راهداری
|
||||||
</th>
|
</th>
|
||||||
@@ -49,10 +49,7 @@
|
|||||||
اداره</th>
|
اداره</th>
|
||||||
<th rowspan="1"
|
<th rowspan="1"
|
||||||
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
||||||
کد خودرو(ها)</th>
|
کد ماموریت</th>
|
||||||
<th rowspan="1"
|
|
||||||
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
|
||||||
کد راهدار(ها)</th>
|
|
||||||
<th rowspan="1"
|
<th rowspan="1"
|
||||||
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
style="text-align: center;border: 1px solid black;background-color: #EBF1DE;font-weight: bold;">
|
||||||
تاریخ شروع</th>
|
تاریخ شروع</th>
|
||||||
@@ -74,8 +71,7 @@
|
|||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['id'] ?? '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['id'] ?? '-' }}</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['province_fa'] ?? '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['province_fa'] ?? '-' }}</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['edare_name'] ?? '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['edare_name'] ?? '-' }}</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['cmmsMachines'] != null ? $item['cmmsMachines']->pluck('machine_code')->implode(', ') : '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['mission_id'] ?? '-' }}</td>
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['rahdaran'] != null ? $item['rahdaran']->pluck('code')->implode(', ') : '-' }}</td>
|
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['start_time'] ? verta($item['start_time'])->format('Y/n/j H:i:s') : '-' }}
|
<td style="border: 1px solid black;text-align: center;">{{ $item['start_time'] ? verta($item['start_time'])->format('Y/n/j H:i:s') : '-' }}
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['end_time'] ? verta($item['end_time'])->format('Y/n/j H:i:s') : '-' }}
|
<td style="border: 1px solid black;text-align: center;">{{ $item['end_time'] ? verta($item['end_time'])->format('Y/n/j H:i:s') : '-' }}
|
||||||
<td style="border: 1px solid black;text-align: center;">{{ $item['created_at'] ? verta($item['created_at'])->format('Y/n/j H:i:s') : '-' }}</td>
|
<td style="border: 1px solid black;text-align: center;">{{ $item['created_at'] ? verta($item['created_at'])->format('Y/n/j H:i:s') : '-' }}</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user