Ghassan Yusuf d8cab94bcb feat: supplier modal wizard, pipeline delete, sidebar cleanup
- Replace two-tab supplier selector with two-step wizard (method select → suppliers → summary)
- Add per-item channel picker (Email / WhatsApp / Both) in By Item mode
- Add confirmation summary step before submitting By Item supplier assignments
- Add type-to-confirm delete on pipeline list rows
- Redirect purchase.requests.index to pipeline (same data, single entry point)
- Remove Purchase Requests from sidebar nav
- Add edit-request-modal, supplier-invite-list components
- Add address coordinates migration for settings_locations

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 17:08:58 +03:00

25 lines
644 B
PHP

<?php
namespace App\Models\Settings;
use Illuminate\Database\Eloquent\Model;
class Location extends Model
{
protected $table = 'settings_locations';
protected $fillable = ['name', 'project_id', 'is_active', 'address', 'latitude', 'longitude'];
protected $casts = ['is_active' => 'boolean', 'latitude' => 'float', 'longitude' => 'float'];
public function scopeActive($query)
{
return $query->where('is_active', true);
}
public function project(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(\App\Models\Settings\ProjectSetting::class, 'project_id');
}
}