{{\App\Models\Item::whereHas('ItemUser', function($q)use($user){$q->where('is_past', '0')->where('user_id', $user->id);})->count()}}
اجمالي المعاملات
{{\App\Models\Client::count()}}
اجمالي الجهات
{{\App\Models\User::count()}}
اجمالي المستخدمين
حالات المعاملات
{{--
--}}
{{--
--}}
@php
if($user->role == 'admin'){
$count = \App\Models\Item::where('item_status_id', 5)->count();
}else{
$count = \App\Models\Item::whereHas('ItemUser', function($q)use($user){
if($user->job_id == 3){
$q->where('is_past', '!=', '3')
// ->where('send_accepted', 1)
// ->where('recieve_accepted', 1)
->where('user_id', $user->id);
}else{
$q->where('is_past', '!=', '3')
->where('user_id', $user->id);
}
})->where('item_status_id', 5)->count();
}
@endphp
@php
if($user->role == 'admin'){
$count = \App\Models\Item::where('item_status_id', 6)->count();
}else{
$count = \App\Models\Item::whereHas('ItemUser', function($q)use($user){
if($user->job_id == 3){
$q->where('is_past', '!=', '3')
// ->where('send_accepted', 1)
// ->where('recieve_accepted', 1)
->where('user_id', $user->id);
}else{
$q->where('is_past', '!=', '3')
->where('user_id', $user->id);
}
})->where('item_status_id', 6)->count();
}
@endphp
{{--
--}}
{{\App\Models\Item::whereHas('ItemUser', function($q)use($user){$q->where('is_past', '0')->where('user_id', $user->id);})->where('item_status_id', null)->count() }}
جديده
{{\App\Models\Item::whereHas('ItemUser', function($q)use($user){$q->where('is_past', '0')->where('user_id', $user->id);})->whereHas('Assignment')->count() }}
المعاملات المحاله
@php
$user = auth('admin')->user();
if($user->role == 'admin'){
$count = \App\Models\Item::where('item_status_id', 3)->count();
}else{
$count = \App\Models\Item::whereHas('ItemUser', function($q)use($user){
if($user->job_id == 3){
$q->where('is_past', '!=', '3')
// ->where('send_accepted', 1)
// ->where('recieve_accepted', 1)
->where('user_id', $user->id);
}else{
$q->where('is_past', '!=', '3')
->where('user_id', $user->id);
}
})->where('item_status_id', 3)->count();
}
@endphp
{{$count }}
قيد الطلب
{{$count }}
قيد التنفيذ
{{$count }}
تم الانتهاء
{{\App\Models\Item::whereHas('ItemUser', function($q)use($user){$q->where('is_past', '0')->where('user_id', $user->id);})->where('item_status_id', 7)->count() }}
مؤرشف
انواع المعاملات
{{--
معاملات داخليه
صادر عام
وارد عام
ارشيف اليكتروني
صادر عام p ( الاحتراف)
صادر عام y ( الفئات السنية )
مخطط اعداد المعاملات
المعاملات الداخليه
المعاملات الخارجيه
{{\App\Models\Client::count()}}
معدل الجهات
{{\App\Models\User::count()}}
معدل المستخدمين
{{\App\Models\Item::count()}}
اجمالي المعاملات
{{\App\Models\Client::count()}}
اجمالي الجهات
{{\App\Models\User::count()}}
اجمالي المستخدمين
حالات المعاملات
Updated 1 month ago
{{--
--}}
{{--
--}}
{{--
--}}
{{\App\Models\Item::where('item_status_id', null)->count() }}
جديده
{{\App\Models\Item::whereHas('Assignment')->count() }}
المعاملات المحاله
{{\App\Models\Item::where('item_status_id', 3)->count() }}
قيد الطلب
{{\App\Models\Item::where('item_status_id', 5)->count() }}
قيد التنفيذ
{{\App\Models\Item::where('item_status_id', 6)->count() }}
تم الانتهاء
{{\App\Models\Item::where('item_status_id', 7)->count() }}
مؤرشف
انواع المعاملات
{{--
معاملات داخليه
صادر عام
وارد عام
ارشيف اليكتروني
صادر عام p ( الاحتراف)
صادر عام y ( الفئات السنية )
مخطط اعداد المعاملات
المعاملات الداخليه
المعاملات الخارجيه
{{\App\Models\Client::count()}}
معدل الجهات
{{\App\Models\User::count()}}
معدل المستخدمين
المعاملات
@include('dashboard.items.table')
@if (auth('admin')->user()->role == 'admin')
@endif
نشط الان
Sat, May 25, 2020
10:AM to 6:PM
@foreach (\App\Models\User::limit(4)->get() as $item)
@endforeach
+2
اخر الانشطه
@foreach ($logs as $item)
@endforeach
{{$item->User->name ?? ''}}
{{$item->description}}{{\Carbon\Carbon::parse($item->created_at)->format('H:i a')}}