@extends('admin.layout.main') @section('admin')

Payment Information

Add payment for the project

@csrf
SR

Maximum amount: {{ number_format(($project->serviceRequest->total_price ?? 0) - ($project->amount_paid ?? 0), 2) }} SR

Cancel

Financial Summary

Total Amount: {{ number_format($project->serviceRequest->total_price ?? 0, 2) }} SR
Paid Amount: {{ number_format($project->amount_paid ?? 0, 2) }} SR
Pending Amount: {{ number_format(($project->serviceRequest->total_price ?? 0) - ($project->amount_paid ?? 0), 2) }} SR

Client Information

@php $contactInfo = is_array($project->serviceRequest->contact_info) ? $project->serviceRequest->contact_info : json_decode($project->serviceRequest->contact_info, true) ?? []; @endphp

{{ $contactInfo['name'] ?? ($project->user->name ?? 'N/A') }}

{{ $contactInfo['company'] ?? 'No Company' }}

{{ $contactInfo['email'] ?? ($project->user->email ?? 'N/A') }}

{{ $contactInfo['phone'] ?? 'N/A' }}

Invoice Preview

Invoice will be generated automatically after payment creation

Invoice #: PAY-{{ $project->id }}-{{ time() }}

Date: {{ date('M d, Y') }}

@endsection