@extends( isClient() ? 'layouts.app' : 'layouts.admin') @push('css') @endpush @section('content') @php $support = $supports->first(); $max_file_size = 5 * 1024; @endphp

Client Support

@if($support->status == config('constant.SUPPORT_STATUS.Open') && (isSupport() || isAdmin())) @endif
@csrf

Title : {{$support->title}}

{{-- --}}

Add attachment (if needed)

(Max. file size {{sizeFilter($max_file_size)}} and File Type jpeg, jpg, png, x-eps,pdf,zip)
@if($support->status == config('constant.SUPPORT_STATUS.Open')) @endif

@if(!empty($supports)) @foreach ($supports as $obj) @php $isadmin = getSupportIsAdmin($obj); @endphp @if($obj->srsender_id == auth()->user()->id)
{{$obj->first_name}}
{{getStringToDateTime($obj->sr_create)}}
@php echo $obj->message; @endphp
@if(!empty($obj->attachment_path)) Attachment @endif
@elseif($isadmin)
{{$obj->first_name}}
{{getStringToDateTime($obj->sr_create)}}
@php echo $obj->message; @endphp
@if(!empty($obj->attachment_path)) Attachment @endif
@else
{{$obj->first_name}}
@if(isAdmin() || isEmployee())
{{$obj->email}}
@endif
{{getStringToDateTime($obj->sr_create)}}
@php echo $obj->message; @endphp
@if(!empty($obj->attachment_path)) Attachment @endif
@endif @endforeach @endif
@endsection @push('script') @endpush