@extends('layout.mainlayout') @section('content')
@if(session('success')) @endif @if(session('error')) @endif
{{$upsiId}} - {{$upsi->event_name}}
Add @if( Auth::user()->role=='admin') Back @else Back @endif
@foreach($upsilist as $data) @endforeach
Sender Recipient Created At Created By Status Actions
{{$data->sender_name}} {{ is_array(json_decode($data->recipient_name, true)) ? implode(', ', json_decode($data->recipient_name, true)) : $data->recipient_name }} @if($data->status == 0) {{ $data->created_at->format('Y-m-d') }} @else {{$data->approved_date}} @endif @if($data->status == 0) {{ $data->createdByUser->firstname }} {{ $data->createdByUser->lastname }} @else {{ $data->approved_by }} @endif @if($data->status == 0) draft @else approved @endif View @if( Auth::user()->role=='admin') @if($data->status == 0) Approve @endif @endif Edit Delete
{{ $upsilist->links() }}
@endsection