<?php
namespace App\Exports;
use Maatwebsite\Excel\Excel;
use App\Models\Frontend\ContactRequest;
use Illuminate\Support\Carbon;
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\WithHeadings;
use Maatwebsite\Excel\Concerns\WithMapping;
class ContactRequestExport implements FromCollection, WithHeadings, WithMapping
{
/**
* Optional Writer Type
*/
private $writerType = Excel::XLSX;
/**
* Optional headers
*/
private $headers = [
'Content-Type' => 'text/csv',
];
public function headings(): array
{
return [
'#',
'Name',
'Email',
'Message',
'Created At',
];
}
/**
* @param mixed $contact
*/
public function map($contact): array
{
return [
$contact->id,
$contact->name,
$contact->email,
$contact->message,
Carbon::parse($contact->created_at)->format("d-m-Y H:i A")
];
}
/**
* @return \Illuminate\Support\Collection
*/
public function collection()
{
return ContactRequest::get(['id','name','email','message','created_at']);
}
}
Welcome to the Kueue Pay Payment Gateway Solutions Developer API Documentation. This comprehensive guide will empower you to seamlessly integrate our advanced payment gateway into your website, enhancing your customers’ payment experience and enabling efficient transaction processing. The Kueue Pay Developer API is designed for developers and entrepreneurs who seek simplicity, security, and reliability in their payment processing solutions.
The Kueue Pay Developer API allows you to seamlessly integrate Kueue Pay’s Payment Gateway Solutions into your website, enabling secure and efficient debit and credit card transactions. With our API, you can initiate payments, check payment statuses, and even process refunds, all while ensuring a smooth and streamlined payment experience for your customers.