@extends('layouts.admin') @section('content') Payment Management Payments New Payment New Payment @include('include.errors') @if(isset($payment)) @php $id=$payment->id @endphp @else @php $id=0 @endphp @endif @if($id>0 && $action=='edit') @else @endif @csrf User * 0 && $action=='edit') ? 'readonly' : '' !!}> @foreach($users as $user) {{$user->accountId . ' (' . $user->firstName . ' ' . $user->lastName . ')'}} @endforeach Order * 0 && $action=='edit') ? 'readonly' : '' !!}> @foreach($orders as $order) {{ $order->orderNumber . ' (' . $order->package->title . ')' }} @endforeach @if(isset($payment) && $payment->price) @php $price=$payment->price @endphp @else @php $price='' @endphp @endif Amount * @if(isset($payment) && $payment->status!="") @php $status=$payment->status @endphp @else @php $status='P' @endphp @endif Payment Status Pending Canceled Completed @if(isset($payment) && $payment->payment_method) @php $payment_method=$payment->payment_method @endphp @else @php $payment_method='' @endphp @endif Payment Types * Select @foreach($paymentMethods as $method) code) ? 'selected' : '' !!}>{{$method->name}} @endforeach @if(isset($payment) && $payment->transaction_id) @php $transaction_id=$payment->transaction_id @endphp @else @php $transaction_id='' @endphp @endif Transaction Id * @endsection @push('scripts') @endpush