@extends('vendors.layout') @section('content')
@php $vendor_id = Auth::guard('vendor')->user()->id; $current_package = App\Http\Helpers\VendorPermissionHelper::packagePermission($vendor_id); @endphp @if ($current_package != '[]') @if (vendorTotalAddedStaff($vendor_id) >= $current_package->staff_limit)
{{ __("You can't add more staffs. Please buy/extend a plan to add staff") }}
@php $can_staff_add = 2; @endphp @else @php $can_staff_add = 1; @endphp @endif @else @php $pendingMemb = \App\Models\Membership::query() ->where([['vendor_id', '=', Auth::id()], ['status', 0]]) ->whereYear('start_date', '<>', '9999') ->orderBy('id', 'DESC') ->first(); $pendingPackage = isset($pendingMemb) ? \App\Models\Package::query()->findOrFail($pendingMemb->package_id) : null; @endphp @if ($pendingPackage)
{{ __('You have requested a package which needs an action (Approval / Rejection) by Admin. You will be notified via mail once an action is taken.') }}
{{ __('Pending Package') . ':' }} {{ $pendingPackage->title }} {{ $pendingPackage->term }} {{ __('Decision Pending') }}
@else
{{ __('Please purchase a new package / extend the current package.') }}
@endif @php $can_staff_add = 0; @endphp @endif
    @csrf

    ...
    {{ __('Choose Image') }}

    {{ __('The higher the order number is, the later the staff will be shown.') }}

    @foreach ($languages as $language)
    @php $currLang = $language; @endphp @foreach ($languages as $language) @continue($language->id == $currLang->id)
    @endforeach
    @endforeach
    @endsection @section('script') @endsection