Bug fixes and Action / Decision seeder
This commit is contained in:
parent
ad8b3c07e1
commit
7329a5f7d8
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
namespace Database\Seeders;
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use App\Models\Action;
|
||||||
|
use App\Models\Decision;
|
||||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||||
use Illuminate\Database\Seeder;
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
|
|
@ -12,6 +14,116 @@ class ActionSeeder extends Seeder
|
||||||
*/
|
*/
|
||||||
public function run(): void
|
public function run(): void
|
||||||
{
|
{
|
||||||
//
|
Action::create([
|
||||||
|
'name' => 'KLIC - IZHODNI',
|
||||||
|
'color_tag' => '',
|
||||||
|
'segment_id' => 1
|
||||||
|
]);
|
||||||
|
|
||||||
|
Action::create([
|
||||||
|
'name' => 'KLIC - VHODNI',
|
||||||
|
'color_tag' => '',
|
||||||
|
'segment_id' => 1
|
||||||
|
]);
|
||||||
|
|
||||||
|
Action::create([
|
||||||
|
'name' => 'ePOŠTA',
|
||||||
|
'color_tag' => '',
|
||||||
|
'segment_id' => 1
|
||||||
|
]);
|
||||||
|
|
||||||
|
Action::create([
|
||||||
|
'name' => 'VROČANJE',
|
||||||
|
'color_tag' => '',
|
||||||
|
'segment_id' => 1
|
||||||
|
]);
|
||||||
|
|
||||||
|
Action::create([
|
||||||
|
'name' => 'SMS',
|
||||||
|
'color_tag' => '',
|
||||||
|
'segment_id' => 1
|
||||||
|
]);
|
||||||
|
|
||||||
|
//------- 1
|
||||||
|
Decision::create([
|
||||||
|
'name' => 'Obljuba',
|
||||||
|
'color_tag' => '',
|
||||||
|
]);
|
||||||
|
|
||||||
|
\DB::table('action_decision')->insert([
|
||||||
|
'action_id' => 1,
|
||||||
|
'decision_id' => 1
|
||||||
|
]);
|
||||||
|
|
||||||
|
\DB::table('action_decision')->insert([
|
||||||
|
'action_id' => 2,
|
||||||
|
'decision_id' => 1
|
||||||
|
]);
|
||||||
|
|
||||||
|
//------- 2
|
||||||
|
Decision::create([
|
||||||
|
'name' => 'Poslana',
|
||||||
|
'color_tag' => '',
|
||||||
|
]);
|
||||||
|
|
||||||
|
\DB::table('action_decision')->insert([
|
||||||
|
'action_id' => 3,
|
||||||
|
'decision_id' => 2
|
||||||
|
]);
|
||||||
|
|
||||||
|
//-------- 3
|
||||||
|
Decision::create([
|
||||||
|
'name' => 'Prejeta',
|
||||||
|
'color_tag' => '',
|
||||||
|
]);
|
||||||
|
|
||||||
|
\DB::table('action_decision')->insert([
|
||||||
|
'action_id' => 3,
|
||||||
|
'decision_id' => 3
|
||||||
|
]);
|
||||||
|
|
||||||
|
//--------- 4
|
||||||
|
Decision::create([
|
||||||
|
'name' => 'Neuspešna',
|
||||||
|
'color_tag' => '',
|
||||||
|
]);
|
||||||
|
|
||||||
|
\DB::table('action_decision')->insert([
|
||||||
|
'action_id' => 4,
|
||||||
|
'decision_id' => 4
|
||||||
|
]);
|
||||||
|
|
||||||
|
//--------- 5
|
||||||
|
Decision::create([
|
||||||
|
'name' => 'Uspešna',
|
||||||
|
'color_tag' => '',
|
||||||
|
]);
|
||||||
|
|
||||||
|
\DB::table('action_decision')->insert([
|
||||||
|
'action_id' => 4,
|
||||||
|
'decision_id' => 5
|
||||||
|
]);
|
||||||
|
|
||||||
|
//--------- 6
|
||||||
|
Decision::create([
|
||||||
|
'name' => 'Poslan SMS',
|
||||||
|
'color_tag' => '',
|
||||||
|
]);
|
||||||
|
|
||||||
|
\DB::table('action_decision')->insert([
|
||||||
|
'action_id' => 5,
|
||||||
|
'decision_id' => 6
|
||||||
|
]);
|
||||||
|
|
||||||
|
//--------- 7
|
||||||
|
Decision::create([
|
||||||
|
'name' => 'Prejet SMS',
|
||||||
|
'color_tag' => '',
|
||||||
|
]);
|
||||||
|
|
||||||
|
\DB::table('action_decision')->insert([
|
||||||
|
'action_id' => 5,
|
||||||
|
'decision_id' => 7
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,8 @@ public function run(): void
|
||||||
|
|
||||||
$this->call([
|
$this->call([
|
||||||
PersonSeeder::class,
|
PersonSeeder::class,
|
||||||
SegmentSeeder::class
|
SegmentSeeder::class,
|
||||||
|
ActionSeeder::class
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -142,16 +142,16 @@ const logout = () => {
|
||||||
<div :class="{'block': showingNavigationDropdown, 'hidden': ! showingNavigationDropdown}" class="sm:hidden">
|
<div :class="{'block': showingNavigationDropdown, 'hidden': ! showingNavigationDropdown}" class="sm:hidden">
|
||||||
<div class="pt-2 pb-3 space-y-1">
|
<div class="pt-2 pb-3 space-y-1">
|
||||||
<ResponsiveNavLink :href="route('dashboard')" :active="route().current('dashboard')">
|
<ResponsiveNavLink :href="route('dashboard')" :active="route().current('dashboard')">
|
||||||
Dashboard
|
Nadzorna plošča
|
||||||
</ResponsiveNavLink>
|
</ResponsiveNavLink>
|
||||||
<ResponsiveNavLink :href="route('client')" :active="route().current('client')">
|
<ResponsiveNavLink :href="route('client')" :active="route().current('client')">
|
||||||
Clients
|
Naročniki
|
||||||
</ResponsiveNavLink>
|
</ResponsiveNavLink>
|
||||||
<ResponsiveNavLink :href="route('clientCase')" :active="route().current('clientCase')">
|
<ResponsiveNavLink :href="route('clientCase')" :active="route().current('clientCase')">
|
||||||
Cases
|
Primeri
|
||||||
</ResponsiveNavLink>
|
</ResponsiveNavLink>
|
||||||
<ResponsiveNavLink :href="route('settings')" :active="route().current('settings')">
|
<ResponsiveNavLink :href="route('settings')" :active="route().current('settings')">
|
||||||
Settings
|
Nastavitve
|
||||||
</ResponsiveNavLink>
|
</ResponsiveNavLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -174,7 +174,7 @@ const logout = () => {
|
||||||
|
|
||||||
<div class="mt-3 space-y-1">
|
<div class="mt-3 space-y-1">
|
||||||
<ResponsiveNavLink :href="route('profile.show')" :active="route().current('profile.show')">
|
<ResponsiveNavLink :href="route('profile.show')" :active="route().current('profile.show')">
|
||||||
Profile
|
Profil
|
||||||
</ResponsiveNavLink>
|
</ResponsiveNavLink>
|
||||||
|
|
||||||
<ResponsiveNavLink v-if="$page.props.jetstream.hasApiFeatures" :href="route('api-tokens.index')" :active="route().current('api-tokens.index')">
|
<ResponsiveNavLink v-if="$page.props.jetstream.hasApiFeatures" :href="route('api-tokens.index')" :active="route().current('api-tokens.index')">
|
||||||
|
|
@ -184,7 +184,7 @@ const logout = () => {
|
||||||
<!-- Authentication -->
|
<!-- Authentication -->
|
||||||
<form method="POST" @submit.prevent="logout">
|
<form method="POST" @submit.prevent="logout">
|
||||||
<ResponsiveNavLink as="button">
|
<ResponsiveNavLink as="button">
|
||||||
Log Out
|
Izpis
|
||||||
</ResponsiveNavLink>
|
</ResponsiveNavLink>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,13 +12,13 @@
|
||||||
|
|
||||||
// Dashboard
|
// Dashboard
|
||||||
Breadcrumbs::for('dashboard', function (BreadcrumbTrail $trail) {
|
Breadcrumbs::for('dashboard', function (BreadcrumbTrail $trail) {
|
||||||
$trail->push('Dashboard', route('dashboard'));
|
$trail->push('Nadzorna plošča', route('dashboard'));
|
||||||
});
|
});
|
||||||
|
|
||||||
// Dashboard > Clients
|
// Dashboard > Clients
|
||||||
Breadcrumbs::for('client', function (BreadcrumbTrail $trail) {
|
Breadcrumbs::for('client', function (BreadcrumbTrail $trail) {
|
||||||
$trail->parent('dashboard');
|
$trail->parent('dashboard');
|
||||||
$trail->push('Clients', route('client'));
|
$trail->push('Naročniki', route('client'));
|
||||||
});
|
});
|
||||||
|
|
||||||
// Dashboard > Clients > [Client]
|
// Dashboard > Clients > [Client]
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
Breadcrumbs::for('clientCase', function (BreadcrumbTrail $trail) {
|
Breadcrumbs::for('clientCase', function (BreadcrumbTrail $trail) {
|
||||||
$trail->parent('dashboard');
|
$trail->parent('dashboard');
|
||||||
$trail->push('Cases', route('clientCase'));
|
$trail->push('Primeri', route('clientCase'));
|
||||||
});
|
});
|
||||||
|
|
||||||
// Dashboard > Cases > [Case]
|
// Dashboard > Cases > [Case]
|
||||||
|
|
@ -44,5 +44,5 @@
|
||||||
// Dashboard > Settings
|
// Dashboard > Settings
|
||||||
Breadcrumbs::for('settings', function (BreadcrumbTrail $trail) {
|
Breadcrumbs::for('settings', function (BreadcrumbTrail $trail) {
|
||||||
$trail->parent('dashboard');
|
$trail->parent('dashboard');
|
||||||
$trail->push('Settings', route('settings'));
|
$trail->push('Nastavitve', route('settings'));
|
||||||
});
|
});
|
||||||
Loading…
Reference in New Issue
Block a user