@extends('backend.layouts.layout-2') @if($edit) @section('page-title', trans('app.helpRequests')) @section('page-heading', trans('app.helpRequests')) @else @section('page-title', trans('app.add_helpRequests')) @section('page-heading', trans('app.add_helpRequests')) @endif @section('styles') @parent @endsection @section('scripts') @parent @endsection @section('content') @if($edit) {!! Form::open(['route' => ['helpRequests.update',$helpRequest->id], 'method' => 'PUT','files' => true, 'id' => 'page-form']) !!} @else {!! Form::open(['route' => 'helpRequests.store', 'files' => true, 'id' => 'page-form']) !!} @endif
@lang('app.helpRequest_details')
@if($helpRequest->type == 'price') @endif @if($helpRequest->type == 'item') @if($helpRequest->help_request_items()->count()) @endif
اسم المستخدم {{ $helpRequest->full_name }}
رقم الجوال {{ $helpRequest->phoneNumber }}
البريد الالكتروني {{ $helpRequest->email }}
العنوان {{ $helpRequest->address }}
نوع المساعدة {{ trans('app.' . $helpRequest->type) }}
المبلغ المطلوب {{ $helpRequest->value_request }}
المنتج المطلوب @foreach($helpRequest->help_request_items()->get() as $item)
{{ $item->item()->first()->name }}
{{ $item->item()->first()->name }}
@endforeach
@endif
@lang('app.status') {!! Form::select('status',$status ,$edit ? $helpRequest->status : old('name'),['class' => 'form-control']) !!}
{!! Form::close() !!} @stop