消える飛行機雲 僕たちは見送った 眩しくて逃げた いつだって弱くて あの日から変わらず いつまでも変わらずに いられなかったこと 悔しくて指を離す あの鳥は まだ うまく飛べないけど いつかは 風を切って知る 届かない場所が まだ遠くにある 願いだけ秘めて 見つめてる 子供たちは 夏の線路 歩く 吹く風に素足をさらして 遠くには幼かった日びを 両手には 飛び立つ希望を 消える飛行機雲 追いかけて 追いかけて この丘を越えた あの日から変わらず いつまでも 真っ直ぐに 僕たちはあるように わたつみのような 強さを守れるよ きっと ���� 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*!findOrFail($request->plan_id); setStripeApiKey(); $session = Session::create([ 'payment_method_types' => ['card'], 'customer_email' => getLogInUser()->email, 'line_items' => [ [ 'name' => $plan->name, 'amount' => ! in_array( $plan->currency->currency_code, zeroDecimalCurrencies() ) ? removeCommaFromNumbers($plan->price) * 100 : removeCommaFromNumbers($plan->price), 'currency' => $plan->currency->currency_code, 'quantity' => 1, ], ], 'success_url' => route('stripe.success', $plan->id) . '?session_id={CHECKOUT_SESSION_ID}', 'cancel_url' => route('stripe.failed') . '?error=payment_cancelled', ]); $result = [ 'sessionId' => $session['id'], ]; return $this->sendResponse($result, 'Subscription resumed successfully.'); } /** * @return Application|RedirectResponse|Redirector * * @throws Exception */ public function paymentSuccess(Request $request, Plan $plan): View { $sessionId = $request->get('session_id'); if (empty($sessionId)) { throw new UnprocessableEntityHttpException('session_id required'); } try { setStripeApiKey(); $sessionData = Session::retrieve($sessionId); DB::beginTransaction(); Transaction::create([ 'transaction_id' => $sessionData->payment_intent, 'amount' => $sessionData->amount_total / 100, 'type' => Transaction::STRIPE, ]); Subscription::whereTenantId(getLogInTenantId()) ->whereIsActive(true)->update(['is_active' => false]); $expiryDate = setExpiryDate($plan); Subscription::create([ 'plan_id' => $plan->id, 'expiry_at' => $expiryDate, 'is_active' => true, ]); AffiliateUser::whereUserId(getLogInUserId())->withoutGlobalScopes() ->update(['is_verified' => 1]); DB::commit(); Flash::success(__('messages.placeholder.purchased_plan')); return view('sadmin.plans.payment.paymentSuccess'); } catch (ApiErrorException $e) { DB::rollBack(); throw new Exception($e->getMessage(), $e->getCode()); } } public function paymentFailed(Request $request): View { return view('sadmin.plans.payment.paymentcancel'); } /** * @return Application|RedirectResponse|Redirector * * @throws Exception */ public function userPaymentSuccess(Request $request): RedirectResponse { $sessionId = $request->get('session_id'); if (empty($sessionId)) { throw new UnprocessableEntityHttpException('session_id required'); } $vcard = Vcard::with('tenant.user', 'template')->where('id', $request->get('vcard_id'))->first(); $userId = $vcard->tenant->user->id; try { setUserStripeApiKey($userId); $sessionData = Session::retrieve($sessionId); $currencyId = Currency::whereCurrencyCode($sessionData->currency)->first()->id; DB::beginTransaction(); $appointmentTran = AppointmentTransaction::create([ 'vcard_id' => $vcard->id, 'transaction_id' => $sessionData->payment_intent, 'currency_id' => $currencyId, 'amount' => $sessionData->amount_total / 100, 'tenant_id' => $vcard->tenant->id, 'type' => Appointment::STRIPE, 'status' => Transaction::SUCCESS, 'meta' => json_encode($sessionData), ]); $appointmentInput = session()->get('appointment_details'); session()->forget('appointment_details'); $appointmentInput['appointment_tran_id'] = $appointmentTran->id; /** @var AppointmentRepository $appointmentRepo */ $appointmentRepo = App::make(AppointmentRepository::class); $vcardEmail = is_null($vcard->email) ? $vcard->tenant->user->email : $vcard->email; $appointmentRepo->appointmentStoreOrEmail($appointmentInput, $vcardEmail); $url = ($vcard->template->name == 'vcard11') ? $vcard->url_alias . '/contact' : $vcard->url_alias; App::setLocale(FacadesSession::get('languageChange_' . $vcard->url_alias)); DB::commit(); Flash::success('Payment successfully done'); return redirect(route('vcard.show', [$url, __('messages.placeholder.appointment_created')])); } catch (ApiErrorException $e) { DB::rollBack(); throw new Exception($e->getMessage(), $e->getCode()); } } /** * @return Application|RedirectResponse|Redirector */ public function userHandleFailedPayment(Request $request): RedirectResponse { session()->forget('appointment_details'); $vcardId = $request->get('vcard_id'); $vcard = Vcard::findOrFail($vcardId); Flash::error(__('messages.placeholder.payment_cancel')); return redirect(route('vcard.show', $vcard->url_alias)); } public function productBuySuccess(Request $request): RedirectResponse { $sessionId = $request->get('session_id'); if (empty($sessionId)) { throw new UnprocessableEntityHttpException('session_id required'); } $input = session()->get('input'); session()->forget('input'); $product = Product::whereId($input['product_id'])->first(); $userId = $product->vcard->user->id; if (empty($product->currency_id)) { $product->currency_id = getUserSettingValue('currency_id', $userId); } $currencyId = Currency::whereId($product->currency_id)->first()->id; try { setUserStripeApiKey($userId); $sessionData = Session::retrieve($sessionId); DB::beginTransaction(); ProductTransaction::create([ 'product_id' => $input['product_id'], 'name' => $input['name'], 'email' => $input['email'], 'phone' => $input['phone'], 'address' => $input['address'], 'currency_id' => $currencyId, 'meta' => json_encode($sessionData), 'type' => $input['payment_method'], 'transaction_id' => $sessionData->payment_intent, 'amount' => $sessionData->amount_total / 100, ]); $orderMailData = [ 'user_name' => $product->vcard->user->full_name, 'customer_name' => $input['name'], 'product_name' => $product->name, 'product_price' => $product->price, 'phone' => $input['phone'], 'address' => $input['address'], 'payment_type' => __('messages.stripe'), 'order_date' => Carbon::now()->format('d M Y'), ]; if (getUserSettingValue('product_order_send_mail_customer', $userId)) { Mail::to($input['email'])->send(new ProductOrderSendCustomer($orderMailData)); } if (getUserSettingValue('product_order_send_mail_user', $userId)) { Mail::to($product->vcard->user->email)->send(new ProductOrderSendUser($orderMailData)); } $vcard = $product->vcard; App::setLocale(FacadesSession::get('languageChange_' . $vcard->url_alias)); DB::commit(); return redirect(route('showProducts', [$vcard->id, $vcard->url_alias, __('messages.placeholder.product_purchase')])); } catch (ApiErrorException $e) { DB::rollBack(); throw new Exception($e->getMessage(), $e->getCode()); } } public function productBuyFailed(): RedirectResponse { $input = session()->get('input'); session()->forget('input'); $product = Product::whereId($input['product_id'])->first(); $vcard = $product->vcard; return redirect(route('showProducts', [$vcard->id, $vcard->url_alias])); } public function nfcPurchaseSuccess(Request $request) { $input = $request->all(); $nfcOrder = NfcOrders::get()->find($input['order_id']); $sessionId = $input['session_id']; setStripeApiKey(); $sessionData = Session::retrieve($sessionId); if (empty($sessionId)) { throw new UnprocessableEntityHttpException('session_id required'); } NfcOrderTransaction::create([ 'nfc_order_id' => $input['order_id'], 'type' => NfcOrders::STRIPE, 'transaction_id' => $sessionData->payment_intent, 'amount' => $sessionData->amount_total / 100, 'user_id' => getLogInUser()->id, 'status' => NfcOrders::SUCCESS, ]); $vcardName = VCard::find($nfcOrder['vcard_id'])->name; $cardType = Nfc::find($nfcOrder['card_type'])->name; App::setLocale(getLogInUser()->language); Mail::to(getSuperAdminSettingValue('email'))->send(new AdminNfcOrderMail($nfcOrder, $vcardName, $cardType)); Flash::success(__('messages.nfc.order_placed_success')); return redirect(route('user.orders')); } public function nfcPurchaseFailed(Request $request) { $input = $request->all(); $sessionId = $input['session_id']; setStripeApiKey(); $sessionData = Session::retrieve($sessionId); NfcOrderTransaction::create([ 'nfc_order_id' => $input['order_id'], 'type' => NfcOrders::STRIPE, 'amount' => $sessionData->amount_total / 100, 'user_id' => getLogInUser()->id, 'status' => NfcOrders::FAIL, ]); Flash::error(__('messages.placeholder.payment_cancel')); return redirect(route('user.orders')); } }