changes
@ -30,10 +30,13 @@ class WebsiteController extends Controller
|
||||
->where('status',1)
|
||||
->get();
|
||||
|
||||
|
||||
$data['sports'] = Newscategories::with('sportNews')->get();
|
||||
$data['cultural'] = Newscategories::with('culturalNews')->get();
|
||||
$data['technology'] = Newscategories::with('technologyNews')->get();
|
||||
$data['entertainment'] = Newscategories::with('entertainmentNews')->get();
|
||||
$data['branches'] = Newscategories::with('branchesNews')->get();
|
||||
|
||||
// dd($data['entertainment']);
|
||||
|
||||
$data['internationalNews'] = News_type::with('news')->get();
|
||||
|
@ -27,7 +27,6 @@ class Newscategories extends Model
|
||||
'updatedby',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
|
||||
];
|
||||
|
||||
protected $appends = ['status_name'];
|
||||
@ -53,33 +52,45 @@ class Newscategories extends Model
|
||||
|
||||
public function parent()
|
||||
{
|
||||
return $this->belongsTo(Newscategories::class, 'parent_category')->where('status',1);
|
||||
return $this->belongsTo(Newscategories::class, 'parent_category')->where('status', 1);
|
||||
}
|
||||
public function children()
|
||||
{
|
||||
return $this->hasMany(Newscategories::class, 'parent_category')->where('status',1);
|
||||
return $this->hasMany(Newscategories::class, 'parent_category')->where('status', 1);
|
||||
}
|
||||
|
||||
public function news(){
|
||||
public function news()
|
||||
{
|
||||
return $this->hasMany(News::class, 'newscategories_id', 'category_id')->orderBy('display_order');
|
||||
}
|
||||
public function entertainmentNews(){
|
||||
public function entertainmentNews()
|
||||
{
|
||||
return $this->hasMany(News::class, 'newscategories_id', 'category_id')->limit(6)->inRandomOrder()->orderBy('display_order');
|
||||
}
|
||||
public function technologyNews(){
|
||||
public function technologyNews()
|
||||
{
|
||||
return $this->hasMany(News::class, 'newscategories_id', 'category_id')->limit(6)->inRandomOrder()->orderBy('display_order');
|
||||
}
|
||||
public function culturalNews(){
|
||||
public function culturalNews()
|
||||
{
|
||||
return $this->hasMany(News::class, 'newscategories_id', 'category_id')->limit(6)->inRandomOrder()->orderBy('display_order');
|
||||
}
|
||||
public function sportNews(){
|
||||
public function sportNews()
|
||||
{
|
||||
return $this->hasMany(News::class, 'newscategories_id', 'category_id')->limit(9)->inRandomOrder()->orderBy('display_order');
|
||||
}
|
||||
public function interviewNews(){
|
||||
public function interviewNews()
|
||||
{
|
||||
return $this->hasMany(News::class, 'newscategories_id', 'category_id')->limit(6)->inRandomOrder()->orderBy('display_order');
|
||||
}
|
||||
|
||||
public function politicNews(){
|
||||
public function politicNews()
|
||||
{
|
||||
return $this->hasMany(News::class, 'newscategories_id', 'category_id')->limit(5)->inRandomOrder()->orderBy('display_order');
|
||||
}
|
||||
public function branchesNews()
|
||||
{
|
||||
return $this->hasMany(News::class, 'newscategories_id', 'category_id')->limit(6)->inRandomOrder()->orderBy('display_order');
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -15,5 +15,6 @@ class DatabaseSeeder extends Seeder
|
||||
$this->call(UserSeeder::class);
|
||||
$this->call(ProvinceSeeder::class);
|
||||
$this->call(NewsTypeSeeder::class);
|
||||
$this->call(NewsCategorySeeder::class);
|
||||
}
|
||||
}
|
||||
|
213
database/seeders/NewsCategorySeeder.php
Normal file
@ -0,0 +1,213 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Newscategories;
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class NewsCategorySeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
Newscategories::create([
|
||||
'category_id'=> 1,
|
||||
'title' => 'Provinces',
|
||||
'nepali_title'=>'प्रदेश समाचार',
|
||||
'alias' => 'provinces',
|
||||
'parent_category' => 0,
|
||||
'display_order' => 1,
|
||||
'status' => 1,
|
||||
'remarks' => '',
|
||||
'createdBy' => 1,
|
||||
'updatedBy' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]);
|
||||
Newscategories::create([
|
||||
'category_id'=> 2,
|
||||
'title' => 'Special Reports',
|
||||
'nepali_title'=>'बिशेष रिपोर्टस',
|
||||
'alias' => 'special-reports',
|
||||
'parent_category' => 0,
|
||||
'display_order' => 2,
|
||||
'status' => 1,
|
||||
'remarks' => '',
|
||||
'createdBy' => 1,
|
||||
'updatedBy' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]);
|
||||
Newscategories::create([
|
||||
'category_id'=> 3,
|
||||
'title' => 'Politics',
|
||||
'nepali_title'=>'राजनीति',
|
||||
'alias' => 'politics',
|
||||
'parent_category' => 0,
|
||||
'display_order' => 3,
|
||||
'status' => 1,
|
||||
'remarks' => '',
|
||||
'createdBy' => 1,
|
||||
'updatedBy' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]);
|
||||
|
||||
Newscategories::create([
|
||||
'category_id'=> 4,
|
||||
'title' => 'Interview',
|
||||
'nepali_title'=>'अन्तरवार्ता',
|
||||
'alias' => 'interview',
|
||||
'parent_category' => 0,
|
||||
'display_order' => 4,
|
||||
'status' => 1,
|
||||
'remarks' => '',
|
||||
'createdBy' => 1,
|
||||
'updatedBy' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]);
|
||||
|
||||
Newscategories::create([
|
||||
'category_id'=> 5,
|
||||
'title' => 'Sports',
|
||||
'nepali_title'=>'खेलकुद',
|
||||
'alias' => 'sports',
|
||||
'parent_category' => 0,
|
||||
'display_order' => 5,
|
||||
'status' => 1,
|
||||
'remarks' => '',
|
||||
'createdBy' => 1,
|
||||
'updatedBy' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]);
|
||||
|
||||
Newscategories::create([
|
||||
'category_id'=> 6,
|
||||
'title' => 'Cultural',
|
||||
'nepali_title'=>'सांस्कृतिक',
|
||||
'alias' => 'cultural',
|
||||
'parent_category' => 0,
|
||||
'display_order' => 6,
|
||||
'status' => 1,
|
||||
'remarks' => '',
|
||||
'createdBy' => 1,
|
||||
'updatedBy' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]);
|
||||
|
||||
Newscategories::create([
|
||||
'category_id'=> 7,
|
||||
'title' => 'Technology',
|
||||
'nepali_title'=>'प्रविधि',
|
||||
'alias' => 'technology',
|
||||
'parent_category' => 0,
|
||||
'display_order' => 7,
|
||||
'status' => 1,
|
||||
'remarks' => '',
|
||||
'createdBy' => 1,
|
||||
'updatedBy' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]);
|
||||
|
||||
|
||||
Newscategories::create([
|
||||
'category_id'=> 8,
|
||||
'title' => 'Entertainment',
|
||||
'nepali_title'=>'मनोरञ्जन',
|
||||
'alias' => 'entertainment',
|
||||
'parent_category' => 0,
|
||||
'display_order' => 8,
|
||||
'status' => 1,
|
||||
'remarks' => '',
|
||||
'createdBy' => 1,
|
||||
'updatedBy' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]);
|
||||
|
||||
|
||||
Newscategories::create([
|
||||
'category_id'=> 9,
|
||||
'title' => 'Feature',
|
||||
'nepali_title'=>'फिचर',
|
||||
'alias' => 'feature',
|
||||
'parent_category' => 0,
|
||||
'display_order' => 9,
|
||||
'status' => 1,
|
||||
'remarks' => '',
|
||||
'createdBy' => 1,
|
||||
'updatedBy' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]);
|
||||
|
||||
Newscategories::create([
|
||||
'category_id'=> 10,
|
||||
'title' => 'Society',
|
||||
'nepali_title'=>'समाज',
|
||||
'alias' => 'society',
|
||||
'parent_category' => 0,
|
||||
'display_order' => 10,
|
||||
'status' => 1,
|
||||
'remarks' => '',
|
||||
'createdBy' => 1,
|
||||
'updatedBy' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]);
|
||||
|
||||
Newscategories::create([
|
||||
'category_id'=> 11,
|
||||
'title' => 'Thoughts',
|
||||
'nepali_title'=>'विचार',
|
||||
'alias' => 'thoughts',
|
||||
'parent_category' => 0,
|
||||
'display_order' => 11,
|
||||
'status' => 1,
|
||||
'remarks' => '',
|
||||
'createdBy' => 1,
|
||||
'updatedBy' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]);
|
||||
|
||||
Newscategories::create([
|
||||
'category_id'=> 12,
|
||||
'title' => 'Agriculture',
|
||||
'nepali_title'=>'कृषि',
|
||||
'alias' => 'agriculture',
|
||||
'parent_category' => 0,
|
||||
'display_order' => 12,
|
||||
'status' => 1,
|
||||
'remarks' => '',
|
||||
'createdBy' => 1,
|
||||
'updatedBy' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]);
|
||||
|
||||
|
||||
Newscategories::create([
|
||||
'category_id'=> 13,
|
||||
'title' => 'Health',
|
||||
'nepali_title'=>'स्वास्थ्य',
|
||||
'alias' => 'health',
|
||||
'parent_category' => 0,
|
||||
'display_order' => 13,
|
||||
'status' => 1,
|
||||
'remarks' => '',
|
||||
'createdBy' => 1,
|
||||
'updatedBy' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
]);
|
||||
|
||||
}
|
||||
}
|
@ -1 +1 @@
|
||||
/Applications/XAMPP/xamppfiles/htdocs/master/storage/app/public
|
||||
/Applications/XAMPP/xamppfiles/htdocs/Hulaki-CCMS/storage/app/public
|
@ -15,59 +15,25 @@
|
||||
</div>
|
||||
|
||||
<div class="health-news-slides owl-carousel owl-theme">
|
||||
<div class="single-health-news">
|
||||
<div class="health-news-image-fluid">
|
||||
<a href="news-details.php">
|
||||
<img src="{{ asset('hulaki/assets/img/health-news/1.png') }}" alt="image-fluid">
|
||||
</a>
|
||||
</div>
|
||||
@foreach ($categories as $type)
|
||||
@if ($type->alias == 'health')
|
||||
@foreach ($type->news as $item)
|
||||
<div class="single-health-news">
|
||||
<div class="health-news-image-fluid">
|
||||
<a href="news-details.php">
|
||||
<img src="{{ asset($item->thumb) }}" alt="image-fluid">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="health-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">नेपालमा कोरोना भाईरसको नयाँ भेरियन्ट ‘केपी.१’ र ‘केपी.२’
|
||||
पुष्टि</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="single-health-news">
|
||||
<div class="health-news-image-fluid">
|
||||
<a href="news-details.php">
|
||||
<img src="{{ asset('hulaki/assets/img/health-news/2.jpg') }}" alt="image-fluid">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="health-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">दुई वर्षभित्र खोरेत रोग उन्मूलन घोषणा</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="single-health-news">
|
||||
<div class="health-news-image-fluid">
|
||||
<a href="news-details.php">
|
||||
<img src="{{ asset('hulaki/assets/img/health-news/3.jpg') }}" alt="image-fluid">
|
||||
</a>
|
||||
</div>
|
||||
<div class="health-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">रसायन हालेर पकाइएको आँप चिन्ने विभिन्न सरल तरिका यस्ताछन्
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="single-health-news">
|
||||
<div class="health-news-image-fluid">
|
||||
<a href="news-details.php">
|
||||
<img src="{{ asset('hulaki/assets/img/health-news/4.jpg') }}" alt="image-fluid">
|
||||
</a>
|
||||
</div>
|
||||
<div class="health-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">गर्मीयाममा कस्तो पेयपदार्थ पिउने त ? </a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="health-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">{{ $item->title }}</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -17,133 +17,62 @@
|
||||
</div>
|
||||
<div class="tech-slider owl-carousel owl-theme">
|
||||
<div class="tech-item">
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/society-news/1.jpg')}}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@foreach ($branches as $type)
|
||||
@if ($type->alias == 'society')
|
||||
@foreach ($type->news->take(3) as $item)
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{ asset($item->thumb) }}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">१५ शय्याको अस्पताल निर्माण तोकिएको समयमा
|
||||
नसकिएपछि थपियो म्याद</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">{{ $item->title }}
|
||||
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/society-news/2.jpg')}}" alt="image">
|
||||
</a>
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">तिर्खा मेटुन्जेल पानी पिउन नपाएको
|
||||
नगरपालिकाको एउटा गाउँ</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/society-news/3.jpg')}}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">महालेखाले औंल्यायो बञ्चरेडाँडा ल्यान्डफिल
|
||||
साइटमा काठमाडौं महानगरका पाँच कमजोरी</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="tech-item">
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/society-news/4.jpg')}}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@foreach ($branches as $type)
|
||||
@if ($type->alias == 'society')
|
||||
@foreach ($type->news->skip(3) as $item)
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{ asset($item->thumb) }}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">अत्यधिक गर्मीले वीरगन्जका विद्यालय तीन
|
||||
दिन बन्द</a>
|
||||
</h3>
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">{{ $item->title }}~~~~~~
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/society-news/5.jpg')}}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">सिरिजंघा गाउँपालिकाको जुस उत्पादन कम्पनी
|
||||
खोल्ने, फलफूल उत्पादनमा प्रोत्साहन गर्ने</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/society-news/6.jpg')}}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">दुई महिनासम्म बुकिमै बसेर यार्साको खोजी,
|
||||
दिनमा भेटिन्छ २० देखि २५ वटासम्म</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -160,133 +89,63 @@
|
||||
|
||||
<div class="sports-slider owl-carousel owl-theme">
|
||||
<div class="sports-item">
|
||||
<div class="single-sports-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="sports-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/opinion-news/1.jpg')}}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@foreach ($branches as $type)
|
||||
@if ($type->alias == 'thoughts')
|
||||
@foreach ($type->news->take(3) as $item)
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{ asset($item->thumb) }}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="sports-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">रविजी, चितवन विकासको तपाइँहरूको मोडल पनि
|
||||
रेनु दाहालको जस्तै हो ?</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">{{ $item->title }}
|
||||
|
||||
<div class="single-sports-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="sports-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/opinion-news/2.png')}}" alt="image">
|
||||
</a>
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="sports-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">‘तिमीलाई कोठा चाहिए हामीलाई कोटा चाहियो’
|
||||
भन्ने साथीहरु, यो पढ्नोस्</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="single-sports-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="sports-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/opinion-news/3.jpg')}}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="sports-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">स्वर्णिम दाइ, अझै ढिलो भइसकेको छैन, तर
|
||||
…</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="sports-item">
|
||||
<div class="single-sports-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="sports-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/opinion-news/4.jpg')}}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@foreach ($branches as $type)
|
||||
@if ($type->alias == 'thoughts')
|
||||
@foreach ($type->news->skip(3) as $item)
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{ asset($item->thumb) }}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="sports-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">निर्मलालाई न्याय : रविको
|
||||
अग्निपरीक्षा</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">{{ $item->title }}
|
||||
|
||||
<div class="single-sports-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="sports-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/opinion-news/5.jpg')}}" alt="image">
|
||||
</a>
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="sports-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">‘मैं जाम्ला’: एउटा गीतले नयाँ-पुरानो
|
||||
सत्तालाई हानेको झटारो</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="single-sports-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="sports-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/opinion-news/6.jpg')}}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="sports-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">नेपालमा किन अपरिहार्य भइसक्यो नैतिक
|
||||
प्रतिरोध ?</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -304,133 +163,63 @@
|
||||
|
||||
<div class="tech-slider owl-carousel owl-theme">
|
||||
<div class="tech-item">
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/agriculture-news/1')}}.jpg" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@foreach ($branches as $type)
|
||||
@if ($type->alias == 'agriculture')
|
||||
@foreach ($type->news->take(3) as $item)
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{ asset($item->thumb) }}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">पशु स्वास्थ्य सेवालाई प्रभावकारी बनाउन
|
||||
सरकार प्रतिबद्धता छ : मुख्यमन्त्री</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">{{ $item->title }}
|
||||
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/agriculture-news/2')}}.jpg" alt="image">
|
||||
</a>
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">बेसार खेतीबारे जान्नै पर्ने १५ कुरा
|
||||
के–के हुन् ?</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/agriculture-news/3')}}.jpg" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">किसानलाई सिँचाइका लागि अनुदानमा
|
||||
स्यालोट्युबवेल</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="tech-item">
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/agriculture-news/4')}}.jpg" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@foreach ($branches as $type)
|
||||
@if ($type->alias == 'agriculture')
|
||||
@foreach ($type->news->skip(3) as $item)
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{ asset($item->thumb) }}" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">महिलालाई व्यावसायिक बनाउन ढाकाको कपडा
|
||||
बुन्न सिकाउँदै गाउँपालिका</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">{{ $item->title }}
|
||||
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/agriculture-news/5')}}.jpg" alt="image">
|
||||
</a>
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">संघर्षको बाबजुत जुत्ता सिलाएर उद्यमी
|
||||
बनिन् निर्मला</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="single-tech-news">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-4">
|
||||
<div class="tech-news-image">
|
||||
<a href="news-details.php">
|
||||
<img src="{{asset('hulaki/assets/img/agriculture-news/6')}}.jpg" alt="image">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="tech-news-content">
|
||||
<h3>
|
||||
<a href="news-details.php">घ्यु जापान निर्यात हुने सम्झौता हुनु
|
||||
गौरवको कुरा : मुख्यमन्त्री कार्की</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
BIN
storage/app/.DS_Store
vendored
BIN
storage/app/public/.DS_Store
vendored
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 435 KiB |
Before Width: | Height: | Size: 435 KiB |
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 435 KiB |
Before Width: | Height: | Size: 435 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 539 KiB |
Before Width: | Height: | Size: 157 KiB |
Before Width: | Height: | Size: 496 KiB |
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 435 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 409 KiB |
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 409 KiB |
Before Width: | Height: | Size: 440 KiB |
Before Width: | Height: | Size: 440 KiB |
Before Width: | Height: | Size: 158 KiB |
Before Width: | Height: | Size: 158 KiB |
Before Width: | Height: | Size: 496 KiB |
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 245 KiB |
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 579 KiB |
Before Width: | Height: | Size: 606 KiB |
Before Width: | Height: | Size: 495 KiB |
Before Width: | Height: | Size: 700 KiB |
Before Width: | Height: | Size: 361 KiB |
Before Width: | Height: | Size: 144 KiB |
Before Width: | Height: | Size: 187 KiB |
Before Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 3.4 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 124 KiB |
Before Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 3.1 MiB |
Before Width: | Height: | Size: 206 KiB |
Before Width: | Height: | Size: 272 KiB |
Before Width: | Height: | Size: 208 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 120 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 871 KiB |
Before Width: | Height: | Size: 953 KiB |
Before Width: | Height: | Size: 784 KiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 991 KiB |