消える飛行機雲 僕たちは見送った 眩しくて逃げた いつだって弱くて あの日から変わらず いつまでも変わらずに いられなかったこと 悔しくて指を離す あの鳥は まだ うまく飛べないけど いつかは 風を切って知る 届かない場所が まだ遠くにある 願いだけ秘めて 見つめてる 子供たちは 夏の線路 歩く 吹く風に素足をさらして 遠くには幼かった日びを 両手には 飛び立つ希望を 消える飛行機雲 追いかけて 追いかけて この丘を越えた あの日から変わらず いつまでも 真っ直ぐに 僕たちはあるように わたつみのような 強さを守れるよ きっと ���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC ‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!nfcOrderRepository = $nfcOrderRepository; } public function index() { return view('nfc.index'); } public function create() { $vcards = Vcard::whereTenantId(getLogInTenantId())->where('status', Vcard::ACTIVE)->pluck('name', 'id')->toArray(); $nfcCards = Nfc::all(); $paymentTypes = getPaymentGateway(); $currency = getCurrencyIcon(getSuperAdminSettingValue('default_currency')); return view('nfc.order', compact('vcards', 'nfcCards', 'paymentTypes', 'currency')); } public function getVcardData(Request $request) { $input = $request->all(); $vcard = Vcard::with('socialLink')->findOrFail($input['vcardId']); $data = [ 'id' => $vcard['id'], 'first_name' => $vcard['first_name'], 'last_name' => $vcard['last_name'], 'email' => $vcard['email'], 'occupation' => $vcard['occupation'], 'location' => $vcard['location'], 'phone' => $vcard['phone'], 'region_code' => $vcard['region_code'], 'company' => $vcard['company'], ]; return response()->json(['data' => $data, 'success' => true]); } public function store(NfcOrderRequest $request) { try { DB::beginTransaction(); $input = $request->all(); $input['user_id'] = getLogInUserId(); if($input['payment_method'] != NfcOrders::RAZOR_PAY){ $nfcOrder = NfcOrders::create($input); $nfcOrder->addMedia($input['logo'])->toMediaCollection(NfcOrders::LOGO_PATH); $orderId = $nfcOrder->id; $userId = $nfcOrder->user_id; $email = $input['email']; $nfc = NfcOrders::with('nfcCard')->findOrFail($orderId); } $currency = getSuperAdminSettingValue('default_currency'); if (isset($input['payment_method'])) { // PhonePe if ($input['payment_method'] == 6) { if($currency != "INR") { return $this->sendError(__('messages.placeholder.this_currency_is_not_supported_phonepe')); } /** @var PhonepeController $phonepe */ $phonepe = App::make(PhonepeController::class); $result = $phonepe->nfcOrder($orderId, $email, $nfc, $currency); DB::commit(); return $this->sendResponse([ 'payment_method' => $input['payment_method'], $result, ], __('messages.placeholder.phonepe_created')); } // Paystack if ($input['payment_method'] == 5) { if (isset($currency) && !in_array(strtoupper($currency), getPayStackSupportedCurrencies())) { return $this->sendError(__('messages.placeholder.this_currency_is_not_supported_paystack')); } /** @var PaystackController $paystack */ $paystack = App::make(PaystackController::class); $result = $paystack->nfcOrder($orderId, $email, $nfc, $currency); DB::commit(); $targetUrl = $result->getTargetUrl(); return $this->sendResponse(['payment_method' => $input['payment_method'], $targetUrl], __('messages.placeholder.paystack_created')); } // Flutterwave if ($input['payment_method'] == 7) { $supportedCurrency = ['GBP', 'CAD', 'XAF', 'CLP', 'COP', 'EGP', 'EUR', 'GHS', 'GNF', 'KES', 'MWK', 'MAD', 'NGN', 'RWF', 'SLL', 'STD', 'ZAR', 'TZS', 'UGX', 'USD', 'XOF', 'ZMW']; if (isset($currency) && !in_array(strtoupper($currency), $supportedCurrency)) { return $this->sendError(__('messages.placeholder.this_currency_is_not_supported_flutterwave')); } /** @var FlutterwaveController $paystack */ $flutterwave = App::make(FlutterwaveController::class); $targetUrl = $flutterwave->nfcOrder($orderId, $email, $nfc, $currency); DB::commit(); return $this->sendResponse(['payment_method' => $input['payment_method'], $targetUrl], __('messages.placeholder.flutterwave_created')); } //Stripe if ($input['payment_method'] == NfcOrders::STRIPE) { $repo = App::make(NfcOrderRepository::class); $result = $repo->userCreateSession($orderId, $email, $nfc, $currency); DB::commit(); return $this->sendResponse([ 'payment_method' => $input['payment_method'], $result, ], __('messages.placeholder.stripe_created')); } // Razor Pay if ($input['payment_method'] == NfcOrders::RAZOR_PAY) { $nfc = Nfc::get()->find($input['card_type']); $nfcOrder = NfcOrders::create($input); $nfcOrder->addMedia($input['logo'])->toMediaCollection(NfcOrders::LOGO_PATH); $orderId = $nfcOrder->id; $userId = $nfcOrder->user_id; $email = $input['email']; Session::put('orderid', $orderId); $repo = App::make(NfcOrderRepository::class); $result = $repo->userCreateRazorPaySession($input, $nfc, $currency); DB::commit(); return $this->sendResponse([ 'payment_method' => $input['payment_method'], $result, ], __('messages.nfc.razorpay_session_success')); } //PayPal if ($input['payment_method'] == NfcOrders::PAYPAL) { if (isset($currency) && !in_array( strtoupper($currency), getPayPalSupportedCurrencies() )) { return $this->sendError(__('messages.placeholder.this_currency_is_not_supported')); } /** @var PaypalController $payPalCont */ $payPalCont = App::make(PaypalController::class); $result = $payPalCont->nfcOrderOnboard($orderId, $email, $nfc, $currency); DB::commit(); return $this->sendResponse([ 'payment_method' => $input['payment_method'], $result, ], __('messages.placeholder.paypal_created')); } //manual if ($input['payment_method'] == NfcOrders::MANUALLY) { NfcOrderTransaction::create([ 'nfc_order_id' => $orderId, 'type' => NfcOrders::MANUALLY, 'transaction_id' => null, 'amount' => $nfc->nfcCard->price * $nfc->quantity, 'user_id' => $userId, 'status' => NfcOrders::PENDING, ]); $vcardName = VCard::find($nfcOrder['vcard_id'])->name; $cardType = Nfc::find($nfcOrder['card_type'])->name; Mail::to(getSuperAdminSettingValue('email'))->send(new AdminNfcOrderMail($nfcOrder, $vcardName, $cardType)); Flash::success(__('messages.nfc.order_placed_success')); DB::commit(); return redirect(route('user.orders')); } } } catch (\Exception $e) { DB::rollBack(); throw new UnprocessableEntityHttpException($e->getMessage()); } } public function updatePaymentStatus(NfcOrderTransaction $transaction) { $transaction->update([ 'status' => NfcOrders::SUCCESS, ]); return $this->sendSuccess(__('messages.nfc.payment_status_update_success')); } public function updateOrderStatus(Request $request, NfcOrders $order) { $status = $request['status']; $order->update([ 'order_status' => $status, ]); Mail::to($order['email'])->send(new NfcOrderStatusMail($order,$status)); return $this->sendSuccess(__('messages.nfc.order_status_update_success')); } public function show($nfcOrder) { $nfcCardOrder = NfcOrders::with('nfcTransaction','vcard','nfcCard','nfcPaymentType')->select('*')->findOrFail($nfcOrder); return view('nfc.columns.show', compact('nfcCardOrder')); } public function nfcCardDetails(Request $request): JsonResponse { $nfcCardDetails = Nfc::with('media') // Eager load the 'media' relationship ->whereId($request->id) ->first(); $currency = getCurrencyIcon(getSuperAdminSettingValue('default_currency')); return $this->sendResponse($nfcCardDetails,$currency, 'Nfc Card data successfully retrieved.'); } }