@extends('layout.mainlayout') @section('content')
Sharing UPSI
@php $recipientNames = is_array(json_decode($upsilist->recipient_name, true)) ? json_decode($upsilist->recipient_name, true) : [$upsilist->recipient_name]; @endphp
@if(!is_null($upsilist->file_path)) Download Attachment {{$upsilist->file_name}} @endif
@if( Auth::user()->role=='admin') Back @else Back @endif
@if($upsilist->status == 1) @php $createdAt = $upsilist->created_at; $createdAt = Carbon\Carbon::parse($createdAt); $created_time = $createdAt->format('H:i:s'); $created_date = $createdAt->toDateString(); $updatedAt = $upsilist->updated_at; $updatedAt = Carbon\Carbon::parse($updatedAt); $update_time = $updatedAt->format('H:i:s'); // Format: 24-hour time (e.g., 14:30:00) $update_date = $updatedAt->toDateString(); // Format: YYYY-MM-DD @endphp
Approved On:
Date: {{$upsilist->approved_date}}
Updated On:
Date: {{$update_date}}
Time: {{$update_time}}
@endif
@endsection