a
This commit is contained in:
@@ -18,22 +18,20 @@ use Illuminate\Validation\Rule;
|
||||
#[Group('Sargytlar - Kart - Kart hereketleri')]
|
||||
class CardTransactionsController extends Controller
|
||||
{
|
||||
public function quick(Request $request)
|
||||
/**
|
||||
* This month transactions on card
|
||||
*/
|
||||
public function lastMonth(): JsonResponse
|
||||
{
|
||||
$data = $request->validate([
|
||||
'start_date' => ['required', 'string', 'date'],
|
||||
'end_date' => ['required', 'string', 'date', 'after:start_date'],
|
||||
]);
|
||||
|
||||
$user = auth()->user();
|
||||
|
||||
$start_date = Carbon::create($data['start_date'])->format('d.m.Y');
|
||||
$end_date = Carbon::create($data['end_date'])->format('d.m.Y');
|
||||
$passport_serie = $this->getOption('passport_serie');
|
||||
$passport_id = $this->getOption('passport_id');
|
||||
$card_number = $this->getOption('card_number');
|
||||
$card_month = $this->getOption('card_month');
|
||||
$card_year = $this->getOption('card_year');
|
||||
$start_date = today()->startOfMonth()->format('d.m.Y');
|
||||
$end_date = today()->endOfMonth()->format('d.m.Y');
|
||||
$passport_serie = $user->getOption('passport_serie');
|
||||
$passport_id = $user->getOption('passport_id');
|
||||
$card_number = $user->getOption('card_number');
|
||||
$card_month = $user->getOption('card_month');
|
||||
$card_year = $user->getOption('card_year');
|
||||
|
||||
if (
|
||||
is_null($passport_serie) || $passport_serie === '' ||
|
||||
|
||||
Reference in New Issue
Block a user