@extends('admin.layouts') @section('title', 'Banner') @section('header') @endsection @section('content')

Logo

Add Logo
@csrf
@if (auth()->user()->role === 'admin') @elseif (in_array(auth()->user()->role, ['sakthi', 'smart_world', 'smart_world_gift', 'yoga_naturals'])) @php $roleToBranchName = [ 'sakthi' => 'Sakthi Super Mart', 'smart_world' => 'SMARTWORLD', 'smart_world_gift' => 'SMARTWORLD - Stationary & Gifts', 'yoga_naturals' => 'Yogaa Naturals', ]; $userRole = auth()->user()->role; $branchName = $roleToBranchName[$userRole] ?? null; $userBranch = $branches->firstWhere('branch_name', $branchName); @endphp @else @endif
History
{{-- @foreach ($banners as $banner) @endforeach
S/N DATE IMAGE ACTION
{{ $loop->iteration }} {{ $banner->created_at->format('d-m-Y') }} preview image 🗑️
--}} @foreach ($banners as $banner) @endforeach
S/N DATE IMAGE BRANCH ACTION
{{ $loop->iteration }} {{ $banner->created_at->format('d-m-Y') }} preview image {{ $banner->branch }} 🗑️
@foreach ($banners as $banner) @endforeach @endsection @section('footer') @endsection