Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions app/Livewire/LeadSubmissionForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class LeadSubmissionForm extends Component

public string $description = '';

public string $budget = '';

public string $turnstileToken = '';

#[Locked]
Expand All @@ -35,7 +33,6 @@ protected function rules(): array
'email' => ['required', 'email', 'max:255'],
'company' => ['required', 'string', 'max:255'],
'description' => ['required', 'string', 'max:5000'],
'budget' => ['required', 'string', 'in:'.implode(',', array_keys(Lead::BUDGETS))],
];

if (config('services.turnstile.secret_key')) {
Expand All @@ -48,7 +45,6 @@ protected function rules(): array
public function messages(): array
{
return [
'budget.in' => 'Please select a budget range.',
'turnstileToken.required' => 'Please complete the security check.',
];
}
Expand All @@ -73,7 +69,6 @@ public function submit(): void
'email' => $this->email,
'company' => $this->company,
'description' => $this->description,
'budget' => $this->budget,
'ip_address' => request()->ip(),
]);

Expand All @@ -87,8 +82,6 @@ public function submit(): void

public function render()
{
return view('livewire.lead-submission-form', [
'budgets' => Lead::BUDGETS,
]);
return view('livewire.lead-submission-form');
}
}
4 changes: 2 additions & 2 deletions app/Notifications/LeadReceived.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public function toMail(object $notifiable): MailMessage
return (new MailMessage)
->subject('Thank you for your enquiry')
->greeting("Hi {$notifiable->name},")
->line('Thank you for reaching out to NativePHP about your app development project.')
->line('We have received your enquiry and one of our team members will be in touch soon to discuss your requirements.')
->line('Thank you for reaching out to NativePHP about consulting.')
->line('We have received your enquiry and one of our team will be in touch soon to discuss your project.')
->line('In the meantime, feel free to explore our documentation or join our Discord community.')
->action('Visit NativePHP', url('/'))
->salutation('Best regards,<br>The NativePHP Team');
Expand Down
4 changes: 2 additions & 2 deletions app/Notifications/NewLeadSubmitted.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ public function via(object $notifiable): array
public function toMail(object $notifiable): MailMessage
{
return (new MailMessage)
->subject('New Build My App Enquiry: '.$this->lead->company)
->subject('New Consulting Enquiry: '.$this->lead->company)
->replyTo($this->lead->email, $this->lead->name)
->greeting('New lead received!')
->line("**Name:** {$this->lead->name}")
->line("**Email:** {$this->lead->email}")
->line("**Company:** {$this->lead->company}")
->line("**Budget:** {$this->lead->budget_label}")
->when($this->lead->budget, fn (MailMessage $message) => $message->line("**Budget:** {$this->lead->budget_label}"))
->line('**Project Description:**')
->line($this->lead->description);
}
Expand Down
2 changes: 1 addition & 1 deletion database/factories/LeadFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function definition(): array
'email' => fake()->safeEmail(),
'company' => fake()->company(),
'description' => fake()->paragraphs(2, true),
'budget' => fake()->randomElement(array_keys(Lead::BUDGETS)),
'budget' => fake()->optional()->randomElement(array_keys(Lead::BUDGETS)),
'ip_address' => fake()->ipv4(),
];
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('leads', function (Blueprint $table) {
$table->string('budget')->nullable()->change();
});
}

public function down(): void
{
Schema::table('leads', function (Blueprint $table) {
$table->string('budget')->nullable(false)->change();
});
}
};
Binary file added public/img/team/shanerosenthal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/team/simonhamp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 0 additions & 30 deletions resources/views/build-my-app.blade.php

This file was deleted.

7 changes: 5 additions & 2 deletions resources/views/components/footer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,13 @@ class="inline-block px-px py-1.5 transition duration-300 will-change-transform h
</li>
<li>
<a
href="{{ route('build-my-app') }}"
href="{{ route('consulting') }}"
class="inline-block px-px py-1.5 transition duration-300 will-change-transform hover:translate-x-1 hover:text-gray-700 dark:hover:text-gray-300"
>
Develop
<span class="inline-flex items-center gap-1.5">
Consulting
<span class="rounded-full bg-emerald-500 px-1.5 py-px text-[10px] font-bold leading-tight text-white">New</span>
</span>
</a>
</li>
<li>
Expand Down
13 changes: 8 additions & 5 deletions resources/views/components/navbar/mobile-menu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class="@md:grid-cols-3 grid grid-cols-2 text-xl"
$isUltraActive = request()->routeIs('pricing');
$isBlogActive = request()->routeIs('blog*');
$isPartnersActive = request()->routeIs('partners*');
$isServicesActive = request()->routeIs('build-my-app');
$isServicesActive = request()->routeIs('consulting');
$isCourseActive = request()->routeIs('course');
$isSupportActive = request()->routeIs('support.*');
$isSponsorActive = request()->routeIs('sponsoring*');
Expand Down Expand Up @@ -231,10 +231,10 @@ class="size-4 shrink-0"
</a>
</div>

{{-- Services Link --}}
<div>
{{-- Consulting Link (mobile only, shown in navbar on desktop) --}}
<div class="lg:hidden">
<a
href="{{ route('build-my-app') }}"
href="{{ route('consulting') }}"
@class([
'flex items-center gap-2 py-3 transition duration-200',
'font-medium' => $isServicesActive,
Expand All @@ -250,7 +250,10 @@ class="size-4 shrink-0"
/>
@endif

<div>Develop</div>
<div class="inline-flex items-center gap-2">
Consulting
<span class="rounded-full bg-emerald-500 px-1.5 py-px text-[10px] font-bold leading-tight text-white">New</span>
</div>
</a>
</div>

Expand Down
8 changes: 8 additions & 0 deletions resources/views/components/navigation-bar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ class="hidden items-center gap-1.5 rounded-full bg-emerald-500/10 px-3 py-1.5 te
Masterclass
</a>

{{-- Consulting link (desktop only) --}}
<a
href="{{ route('consulting') }}"
class="hidden items-center gap-1.5 rounded-full bg-blue-500/10 px-3 py-1.5 text-sm font-medium text-blue-600 transition duration-200 hover:bg-blue-500/20 lg:inline-flex dark:text-blue-400 dark:hover:bg-blue-500/20"
>
Consulting
</a>

{{-- Bifrost button (visible on large screens) --}}
<div class="hidden lg:block">
<x-bifrost-button small />
Expand Down
Loading
Loading