@extends('layouts/contentLayoutMaster') @section('title', 'Reverted Rental Agreement') @section('vendor-style') @endsection @section('page-style') @endsection @section('content') {{-- Add Dispatch Point --}} {{$agreement->code ? $agreement->code : 'N/A' }} ( @if ($agreement->status === 1) Approved @elseif ($agreement->status === 2) Pending @elseif ($agreement->status === 4) Reverted @else Rejected @endif) @if ($message = Session::get('success')) {{ $message }} @endif @if ($errorMessage = Session::get('errorMessage')) {{ $errorMessage }} @endif @csrf @php $badgeMap = [ 'plant' => ['label' => 'Plant', 'color' => '#db4243'], 'building' => ['label' => 'Plant Building', 'color' => '#e08465'], 'plant_mcc' => ['label' => 'Plant Collection Point', 'color' => '#eb7aa0'], 'ao' => ['label' => 'Area Office', 'color' => '#28A745'], 'dp' => ['label' => 'Dispatch Point', 'color' => '#20C997'], 'mcc' => ['label' => 'Collection Center', 'color' => '#007bff'], 'ao_building' => ['label' => 'Area Office Building', 'color' => '#008080'], ]; $type = $agreement->type ?? 'unknown'; $badge = $badgeMap[$type] ?? null; @endphp Vendor Code: {{ $agreement->vendor ? $agreement->vendor->code : 'N/A' }} Vendor Name: {{ $agreement->vendor ? ucwords($agreement->vendor->name) : 'N/A' }} Facility: {{ $agreement->facility ? ucwords($agreement->facility->name) : 'N/A' }} Facility Type: @if ($badge) {{ $badge['label'] }} @else N/A @endif Agreement Details : Agreement Type -- Select -- agreement_type) == 'monthly' ? 'selected' : '' }}>Monthly agreement_type) == 'quarterly' ? 'selected' : '' }}>Quarterly agreement_type) == 'yearly' ? 'selected' : '' }}>Yearly Payment Type payment_type) == 'prepaid' ? 'selected' : '' }}>Prepaid payment_type) == 'postpaid' ? 'selected' : '' }}>Postpaid WEF Date Agreement Amount Number of Installments Advance Amount Security Amount End Date (Auto-calculated) Per Installment Amount Pending Rental Amount @if(isset($agreement->file_url) && $agreement->file_url != null) Attachment File: @endif Upload File (Max 4MB) @if($agreement->status == 4) Submit Reset {{-- Cancel --}} @endif @endsection @section('vendor-script') @endsection @section('page-script') {{-- --}} @endsection