@extends('portal.layouts.app', ['activePage' => 'upload', 'titlePage' => __('Upload Gallery')]) @section('content')
mail_outline
Upload Photos
@if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@csrf
Title
@if(Auth::user()->role->name !== 'photographer')
Photographer
{{ __('Add Photographers') }}
--- Select Photographer ---
@foreach(\App\User::whereHas('role', function (\Illuminate\Database\Eloquent\Builder $query) { $query->where('name', '=', 'photographer'); })->get() as $photographer)
{{$photographer->name}}
@endforeach
@elseif(Auth::user()->role->name !== 'photographer')
@endif
Category
--- Select Category ---
@foreach(\App\Category::all() as $category)
{{$category->name}}
@endforeach
Tags
Description
Camera Used
Price
@if(Auth::user()->role->name == 'admin')
Publish
Save as Draft
@endif
@endsection @section('script') @endsection @section('style')
@endsection