@extends('dashboard.layouts.app') @section('css') @endsection @section('content')
رقم المعامله : {{$row->code}} @if ($row->ItemStatus()->exists()) {{$row->ItemStatus->title}} @endif
@if(in_array($row->type, ['general_importer' ,'archived' ,'general_exporter'])) @endif @if(in_array($row->type, ['general_importer' ,'archived' ,'general_exporter', 'internal'])) @endif @if(in_array($row->type, ['general_exporter'])) @endif {{-- --}} @if(in_array($row->type, ['general_importer' ,'general_exporter', 'internal'])) @endif @if(in_array($row->type, ['internal'])) @endif
الفرع / القسم {{$row->Department->title ?? ''}}
نوع الإجراء {{__('translation.'.$row->type)}} {{-- مثال مثال مثال مثال مثال مثال مثال مثال مثال --}}
@if(in_array($row->type, ['general_exporter'])) موضوع الصادر @else الموضوع @endif {{$row->title}}
درجة الاهميه {{$row->Periority->title ?? ''}}
@if($row->type == 'general_importer') جهة الورود @endif @if($row->type == 'archived d-none') الحساب صلة @endif @if($row->type == 'general_exporter') الجهه التابع لها @endif {{$row->Entity->name ?? ''}}
@if(in_array($row->type, ['general_importer' ,'archived', 'internal'])) التاريخ @else تاريخ الصادر العام @endif {{$row->day_date ?? ''}}
اسم المستلم {{$row->reciept_name ?? ''}}
يحتاج متابعه {{$row->is_follow ? 'نعم' : 'لا'}}
عدد المرفقات {{$row->files_count}}
موافقة المدير {{$row->manager_agree ? 'نعم' : 'لا'}}
يحتاج متابعه مثال لنص يمكن استبداله
أعجلية المعاملة {{__('translation.'.$row->fast_degree)}}
درجة السريه {{__('translation.'.$row->secret_degree)}}
الرقم السري {{$row->secret_no}}
ملخص الموضوع {{$row->description}}
ملاحظات {{$row->notes}}
المرفقات
التاريخ
{{\Carbon\Carbon::parse($row->created_at)->format('Y-m-d')}}
{{\Carbon\Carbon::parse($row->created_at)->format('H:i a')}}
الكود
{{$row->code}}
تم الإضافة بواسطة
{{$row->User->name ?? ''}}
{{implode(',' ,$row->User()->first()->Departments()->pluck('title')->toArray()) ?? ''}}
{{--
مذكرات
لا يوجد أي مستندات حتى الآن
--}}
@if($row->GuideLine()->count() > 0)


التوجيهات السابقه
@foreach ($row->GuideLine()->get() as $guid)
{{$guid->Make->name ?? ''}} {{$guid->created_at->toDateString()}}
{{$guid->description}}
@endforeach
@endif

التوجيهات

{!!Form::model($row , ['url' => route('items.update', $row) ,'method' => 'PATCH','files' => true, 'class' => 'add-form', 'id' => '']) !!}
{!! Form::select('status', ItemStatuses(), null, ["data-placeholder"=>"اختر حالة المعاملة" ,"class"=>"select2 form-control name-sel" ]) !!}
{{-- --}} {{--
ارفاق الملفات , اسحب و الصق الملفات هنا
--}} {{-- --}}
ارفاق الملفات , اسحب و الصق الملفات هنا
{!!Form::close() !!}
@if (isset($row))
@endif
@if (isset($row)) @include('dashboard.items.files.table',['rows' => $row->Files()->get()]) @endif
@if (isset($row))
@endif
@if (isset($row)) @include('dashboard.items.related.table2',['rows' => \App\Models\Item::whereIn('id',$row->Relation()->pluck('related_id')->toArray())->get()]) @endif
@if (isset($row))
@endif
@if (isset($row)) @include('dashboard.items.assignments.table',['rows' => $row->Assignment()->get()]) @endif
@if (isset($row))
@endif
@if (isset($row)) @include('dashboard.items.guideline.table',['rows' => $row->GuideLine()->get()]) @endif
@if (isset($row)) @include('dashboard.items.tables.logs',['rows' => $row->Log()->get()]) @endif
@if (isset($row))
@endif
@if (isset($row)) @include('dashboard.items.reminder.table',['rows' => $row->Reminder()->get()]) @endif
@endsection @section('modal') @endsection @section('js') @if (session()->has('new')) @endif @endsection