@extends('admin.layout.app') @section('style') @section('header')
  • {{--
    اضافة
    --}}
  • @endsection @endsection @section('content')
    @php $step = ['' => 'حالة الطلب']; $step['1'] = "لم يتم اتخاذ اي اجراء"; $step['2'] = "تم تدقيق صحة البيانات"; $step['3'] = "تم التعميد"; $step['4'] = "تم تسليم المساعدة"; @endphp {!! Form::select("step",$step,(array_key_exists('step', $search))? $search['step'] : null,['class'=>"form-control "])!!}
    @php $country = ['' => 'الجنسية']; foreach (\App\City::where('type', 'country')->get() as $key) { $country[$key->name] = $key->name; } @endphp {!! Form::select("country",$country,(array_key_exists('country', $search))? $search['country'] : null,['class'=>"form-control "])!!}
    @php $city = ['' => 'المدينة']; foreach (\App\City::where('type', 'city')->get() as $key) { $city[$key->name] = $key->name; } @endphp {!! Form::select("city",$city,(array_key_exists('city', $search))? $search['city'] : null,['class'=>"form-control "])!!}
    @php $type = ['' => 'نوع المساعده']; $type['1'] = "مساعدة ايجار"; $type['2'] = "مساعدة علاج"; $type['3'] = "مساعدة زواج"; $type['4'] = "مساعدة تعليم"; $type['5'] = "مساعدة ديون"; $type['6'] = "مساعدة كهرباء"; $type['7'] = "مساعدة ارزاق"; @endphp {!! Form::select("type",$type,(array_key_exists('type', $search))? $search['type'] : null,['class'=>"form-control "])!!}
    @php $status = ['' => ' الحاله الاجتماعيه']; $status['أرملة'] = 'أرملة'; $status['مطلقة'] = 'مطلقة'; $status['مهجورة'] = 'مهجورة'; $status['عائلة سجين'] = 'عائلة سجين'; $status['رب أسره'] = 'رب أسره'; $status['مرافق'] = 'مرافق'; @endphp {!! Form::select("status",$status,(array_key_exists('status', $search))? $search['status'] : null,['class'=>"form-control "])!!}
    @php $house = ['' => 'طبيعه السكن']; $house['ملك'] = 'ملك'; $house['ايجار'] = 'ايجار'; $house['شعبي'] = 'شعبي'; $house['رباط'] = 'رباط'; $house['مع الاسرة'] = 'مع الاسرة'; $house['أخرى'] = 'أخرى'; @endphp {!! Form::select("house",$house,(array_key_exists('house', $search))? $search['house'] : null,['class'=>"form-control "])!!}
    @php $health = ['' => 'الحاله الصحيه']; $health['سليم'] = 'سليم'; $health['امراض مزمنة تعيق عن العمل'] = 'امراض مزمنة تعيق عن العمل'; $health['امراض مزمنة لا تعيق عن العمل'] = 'امراض مزمنة لا تعيق عن العمل'; @endphp {!! Form::select("health",$health,(array_key_exists('health', $search))? $search['health'] : null,['class'=>"form-control "])!!}
    @php $i = 1; @endphp @foreach($orders as $item) @endforeach
    # رقم الطلب الاسم رقم الجوال رقم الهويه الجنس الدوله المدينة الحي تاريخ الميلاد الحالة الاجتماعية نوع الطلب العمليات
    {{$i++}} {{$item->id}} {{$item->name}} {{$item->phone1}} {{$item->id_num}} {{$item->gender}} {{$item->country}} {{$item->city}} {{$item->hood}} {{$item->birth_date}} {{$item->status}} {{__('auth.'.$item->req)}} اضافة ملاحظة عرض الملاحظات @if (auth()->user()->role == 'admin') حذف @endif عرض @if (auth()->user()->role == 'employee') @if ( $item->step1 == null ) {!!Form::model($item , ['url' => ['/dashboard/orders/'.$item->id] , 'method' => 'PATCH','files'=>true]) !!} {!! Form::hidden('ty','emp', []) !!} {!!Form::close() !!} @else تم تاكيد صحة المرفقات والبيانات @endif @endif @if (auth()->user()->role == 'reviewer') @if ( $item->step1 == null ) لم يتم تاكيد صحة المرفقات والبيانات @else تم تاكيد صحة المرفقات والبيانات @endif @endif @if (auth()->user()->role == 'reviewer' && $item->step1) @if ( $item->step2 == null ) {!!Form::model($item , ['url' => ['/dashboard/orders/'.$item->id] , 'method' => 'PATCH','files'=>true]) !!} {!! Form::hidden('ty','review', []) !!} {!! Form::number('amount', null, ['class' => 'form-control ', 'step' => 'any', 'placeholder' => 'مبلغ التعميد']) !!} {!!Form::close() !!} @else تم تعميد المبلغ @endif @endif @if (auth()->user()->role == 'admin') @if ( $item->step1 == null ) لم يتم تاكيد صحة المرفقات والبيانات @else تم تاكيد صحة المرفقات والبيانات @endif @if ( $item->step1 == null ) لم يتم تعميد المبلغ @else تم تعميد المبلغ @endif @endif @if (auth()->user()->role == 'admin' && $item->step2) @if ( $item->step3 == null ) {!!Form::model($item , ['url' => ['/dashboard/orders/'.$item->id] , 'method' => 'PATCH','files'=>true]) !!} {!! Form::hidden('ty','adm', []) !!} {!!Form::close() !!} @else تم تأكيد تسليم المساعدة @endif @endif
    {{ $orders->appends($search)->links() }}
    @endsection @section('script') @endsection