@extends('layouts.content') @section('body_content')
Back @if($btr->status === "approved" || $btr->status === "reject") Generate PDF @endif status === "approved" ? 'btn-success' : ($btr->status === "Approve-Manager" ? 'btn-primary' : 'btn-danger'))}}" id="status_label"> Status: {{ ucfirst($btr->status) }} @if($btr->status === "pending" && $appCompany && ($btr->manager_user_uid === auth()->user()->uid)) @elseif($btr->status === "pending" || $btr->status === "Approve-Manager") @if(( // Kondisi untuk Director atau pengguna dengan akses Special ($accessLevel === "Director" || auth()->user()->accessBtr?->access === "Special") && ( // Cek jumlah berdasarkan mata uang ($btr->currency_id == 1 && $btr->total_amount >= 50000000) || // Rupiah >= 50 juta ($btr->currency_id == 2 && $btr->total_amount >= 3203) || // USD >= 3203 ($btr->currency_id == 3 && $btr->total_amount >= 22847) // Yuan >= 22847 ) ) || ( // Kondisi tambahan untuk Director atau pengguna dengan akses Special ($accessLevel === "Director" || auth()->user()->accessBtr?->access === "Special") && in_array($btr?->requestBy?->roles?->accessLevel?->name, ["Manager", "HR-Manager"]) ) || (($accessLevel === "Director" || auth()->user()->accessBtr?->access === "Special") && (auth()->user()->uid === $btr->requestor_user_uid)) ) @elseif( (( // Kondisi untuk HR-Manager atau Manager (bukan requestor) $accessLevel === "HR-Manager" || $accessLevel === "Manager" || ($accessLevel === "Supervisor" && $btr->manager_user_uid === auth()->user()->uid) ) && $btr->status === "pending") && auth()->user()->uid !== $btr->requestor_user_uid ) @if( // Cek jumlah berdasarkan mata uang untuk HR-Manager atau Manager ($btr->currency_id == 1 && $btr->total_amount < 50000000) || // Rupiah < 50 juta ($btr->currency_id == 2 && $btr->total_amount < 3203) || // USD < 3203 ($btr->currency_id == 3 && $btr->total_amount < 22847) // Yuan < 22847 ) @else @endif @endif @endif
{{ $logo?->logo }}
Created By: {{ $btr?->initiatedBy?->name ?? "-" }}
Time Created: {{ $btr?->created_at ? \Carbon\Carbon::parse($btr?->created_at)->addHours(7)->format('Y-m-d H:i:s') : "-" }}
@if($btr->spv_known_uid) Known By: {{ $btr?->knownBy?->name ?? "-" }}
Created By: {{ $btr?->spv_at ? \Carbon\Carbon::parse($btr?->spv_at)->addHours(7)->format('Y-m-d H:i:s') : "-" }}
@endif Approved By: {{ $btr?->approvedBy?->name ?? "-" }}
Time Approve: {{ $btr?->approve_created_at ? \Carbon\Carbon::parse($btr?->approve_created_at)->addHours(7)->format('Y-m-d H:i:s') : "-" }}
@include('partials.alert') @if($btr->status === "approved") Approved @elseif($btr->status === "reject") Rejected @endif @include('btr.show_or_edit.component.data-btr') @include('btr.show_or_edit.component.passanger') @include('btr.show_or_edit.component.trip_routing') @include('btr.show_or_edit.component.travel_cost') @if ($btr?->passanger && count($btr?->passanger) > 0 && $btr?->passanger[0]?->is_hotel_booking === "yes") @include('btr.show_or_edit.component.hotel') @endif @if($btr?->requestAttachment?->file) @endif
@include('btr.show_or_edit.modal.approve') @include('btr.show_or_edit.modal.reject_btr') @include('btr.modal.approval_btr') @push('scripts') @endpush @endsection