update marketing
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 5m14s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 17s
Build, Push and Deploy / deploy-staging (push) Successful in 41s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-14 11:55:22 +07:00
parent f80fcc4c1b
commit 05fd3230b8
448 changed files with 17545 additions and 5128 deletions

View File

@@ -5,13 +5,6 @@
@endsection
@php
$file = base_path('lang/countrylist.json');
if (file_exists($file)) {
$countries = json_decode(file_get_contents($file), true);
} else {
$countries = [];
}
$type = request('type') !== 'Supplier' ? 'Customer' : 'Supplier';
@endphp
@@ -27,12 +20,18 @@
<h4>{{ __('Add new :type', ['type' => __($type)]) }}</h4>
@usercan('parties.read')
<a href="{{ route('business.parties.index', ['type' => request('type')]) }}"
class="add-order-btn rounded-2 {{ Route::is('business.parties.create') ? 'active' : '' }}">
<i class="far fa-list" aria-hidden="true"></i>{{ __(':type List', ['type' => __($type)]) }}
</a>
@endusercan
<div class="d-flex align-items-center gap-3">
<a data-bs-toggle="modal" data-bs-target="#parties-import-modal" class="save-publish-btn" href="#">
{{__('Bulk Upload')}}
</a>
@usercan('parties.read')
<a href="{{ route('business.parties.index', ['type' => request('type')]) }}"
class="add-order-btn rounded-2 {{ Route::is('business.parties.create') ? 'active' : '' }}">
<i class="far fa-list" aria-hidden="true"></i>{{ __(':type List', ['type' => __($type)]) }}
</a>
@endusercan
</div>
</div>
<div class="order-form-section p-16">
@@ -43,11 +42,11 @@ class="add-order-btn rounded-2 {{ Route::is('business.parties.create') ? 'active
<div class="row col-lg-9">
<div class="col-lg-6 mb-2">
<label>{{ __($type . ' Name') }}</label>
<input type="text" name="name" required class="form-control" placeholder="{{ __('Enter '.$type.' Name') }}">
<input type="text" name="name" required class="form-control" placeholder="{{ __('Enter :type Name', ['type' => __($type)]) }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('Phone Number') }}</label>
<input type="number" name="phone" class="form-control" placeholder="{{ __('Enter Phone Number') }}">
<input type="text" name="phone" class="form-control" placeholder="{{ __('Enter Phone Number') }}">
</div>
@if (request('type') !== 'Supplier')
<div class="col-lg-6 mb-2">
@@ -95,6 +94,12 @@ class="add-order-btn rounded-2 {{ Route::is('business.parties.create') ? 'active
<label>{{ __('Address') }}</label>
<input type="text" name="address" class="form-control" placeholder="{{ __('Enter Address') }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('Tax No') }}</label>
<input type="text" name="tax_no" class="form-control" placeholder="{{ __('Enter tax') }}">
</div>
<div class="accordion" id="customAccordion">
<div class="accordion-item border-0">
<h2 class="accordion-header">
@@ -106,31 +111,39 @@ class="add-order-btn rounded-2 {{ Route::is('business.parties.create') ? 'active
data-bs-parent="#customAccordion">
<div class="accordion-body fst-italic text-secondary p-0">
<div class="row">
<div class="col-lg-6 mb-2">
<label>{{ __('Address line 1') }}</label>
<input type="text" name="billing_address[address]" class="form-control" placeholder="{{ __('Enter address') }}">
<label>{{ __('Country') }}</label>
<select name="country_id" id="country_id" class="form-control">
<option value="">{{ __('Select a country') }}</option>
@foreach ($countries as $country)
<option value="{{ $country->id }}">{{ __($country->name) }}</option>
@endforeach
</select>
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('State') }}</label>
<select name="state_id" id="state_id" class="form-control">
<option value="">{{ __('Select state') }}</option>
</select>
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('City') }}</label>
<input type="text" name="billing_address[city]" class="form-control" placeholder="{{ __('Enter city') }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('State') }}</label>
<input type="text" name="billing_address[state]" class="form-control" placeholder="{{ __('Enter state') }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('Zip Code') }}</label>
<input type="text" name="billing_address[zip_code]" class="form-control" placeholder="{{ __('Enter zip code') }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('Country') }}</label>
<select name="billing_address[country]" class="form-control">
<option value="">{{ __('Select a country') }}</option>
@foreach ($countries as $country)
<option value="{{ $country['name'] }}">{{ __($country['name']) }}</option>
@endforeach
</select>
<label>{{ __('Address line 1') }}</label>
<input type="text" name="billing_address[address]" class="form-control" placeholder="{{ __('Enter address') }}">
</div>
</div>
</div>
</div>
@@ -184,7 +197,7 @@ class="add-order-btn rounded-2 {{ Route::is('business.parties.create') ? 'active
<img src="{{ asset('assets/images/icons/img.png') }}" alt="icon" />
</div>
<p>{{__('Drag & drop your Image')}}</p>
<p>or <span class="browse-text">{{__('Browse')}}</span></p>
<p>{{__('or')}} <span class="browse-text">{{__('Browse')}}</span></p>
</div>
</div>
<input type="file" name="image" id="fileInput" accept="image/*">
@@ -205,4 +218,11 @@ class="add-order-btn rounded-2 {{ Route::is('business.parties.create') ? 'active
</div>
</div>
</div>
<input type="hidden" value="{{ route('business.get-states.index') }}" id="get-state">
@endsection
@push('modal')
@include('business::parties.bulk-upload.parties-import')
@endpush